NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 440 forks source link

Clean up siatest testrenter and improve runtime #3139

Closed MSevey closed 6 years ago

MSevey commented 6 years ago

Summary of edits: renter_test.go - reordered tests so that they are cleanly grouped and alphabetized so it is easier to work with. combined interrupt tests into TestRenterInterrupt so that as a group they can be run in parallel to improve the runtime and not error out due to too many files open

testgroup.go - updated AddNodes to return the nodes added. Needed this in order to combine the interrupt tests.

testgroup_test.go - added unit test for AddNodes to confirm the node added was returned.