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 442 forks source link

Increase number of chunks in interruption tests to avoid NDF #3125

Closed ChrisSchinnerl closed 6 years ago

ChrisSchinnerl commented 6 years ago

TestUploadInterrupted and TestDownloadInterrupted randomly interrupt uploads and downloads to make sure that the proto package is ACID. The problem is that the testfile was uploaded with a 1 out of 2 redundancy which means the test randomly failed because it was able to upload 1 out of 2 pieces due to the test's randomness. This PR changes the redundancy to 4 out of 5 to make it a lot less likely that this happens by accident.