Files
tendermint/consensus
Zarko Milosevic b738add80c cs: fix nondeterministic tests (#3582)
Should fix #3451, #2723 and #3317.

Test TestResetTimeoutPrecommitUponNewHeight is simplified so it reduces a risk of timeout failure. Furthermore, timeout we wait for TimeoutEvents is increased, and the timeout value is more precisely computed. This should hopefully decrease a chance of non-deterministic test failures.

This assertion is problematic to ensure consistently due to dependency on scheduler. On the other hand, if I am not wrong, order in which messages are read from the channel respects order in which messages are written. Therefore, process will receive 2f+1 precommits that are not all for v (one is for nil) so TriggeredTimeoutPrecommit would be set to true. So we don't need to assert it. I know that it would be better to still assert to it but I don't know how to do it without sleep and that is ugly and is causing us nondeterministic failures.
2019-04-23 13:19:16 +04:00
..
2019-02-22 23:11:27 -05:00
2019-02-22 23:11:27 -05:00
2019-02-22 23:11:27 -05:00
2019-02-11 16:31:34 +04:00
2019-02-22 23:11:27 -05:00
2018-07-01 22:36:49 -04:00
2019-01-28 16:13:17 +04:00

See the consensus spec and the reactor consensus spec for more information.