-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce fuzz testing to separate unit tests from repetition tests
Prior to changes introduced here the majority of time during testing was spent on repeating the same test while changing the seed for generators or latency models. Instead of repeating the same test over and over use the fuzz testing mechanism provided by Go SDK. This change allows the unit tests to run much faster while offering a configurable "fuzztime" that dictates for how long the test cases should be fuzzed. The changes here introduce the following fuzz tests: * `FuzzAbsentAdversary` * `FuzzImmediateDecideAdversary` * `FuzzHonest_AsyncRequireStrongQuorumToProgress` * `FuzzHonest_SyncMajorityCommonPrefix` * `FuzzHonest_AsyncMajorityCommonPrefix` * `FuzzHonestMultiInstance_AsyncDisagreement` * `FuzzHonestMultiInstance_SyncAgreement` * `FuzzHonestMultiInstance_AsyncAgreement` * `FuzzStoragePower_SyncIncreaseMidSimulation` * `FuzzStoragePower_AsyncIncreaseMidSimulation` * `FuzzStoragePower_SyncDecreaseRevertsToBase` * `FuzzStoragePower_AsyncDecreaseRevertsToBase` * `FuzzRepeatAdversary` The CI workflow is updated to run each of the fuzz tests for 30 seconds in a dedicated job.
- Loading branch information
Showing
15 changed files
with
712 additions
and
733 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.