Check we can make blocks with skip_timeout_commit=false
(t *testing.T)
| 559 | |
| 560 | // Check we can make blocks with skip_timeout_commit=false |
| 561 | func TestReactorWithTimeoutCommit(t *testing.T) { |
| 562 | N := 4 |
| 563 | css, cleanup := randConsensusNet(N, "consensus_reactor_with_timeout_commit_test", newMockTickerFunc(false), newCounter) |
| 564 | defer cleanup() |
| 565 | // override default SkipTimeoutCommit == true for tests |
| 566 | for i := 0; i < N; i++ { |
| 567 | css[i].config.SkipTimeoutCommit = false |
| 568 | } |
| 569 | |
| 570 | reactors, blocksSubs, eventBuses := startConsensusNet(t, css, N-1) |
| 571 | defer stopConsensusNet(log.TestingLogger(), reactors, eventBuses) |
| 572 | |
| 573 | // wait till everyone makes the first new block |
| 574 | timeoutWaitGroup(t, N-1, func(j int) { |
| 575 | <-blocksSubs[j].Out() |
| 576 | }, css) |
| 577 | } |
| 578 | |
| 579 | func waitForAndValidateBlock( |
| 580 | t *testing.T, |
nothing calls this directly
no test coverage detected