Skip to content

Commit

Permalink
Remove sleep from asserting epoch finalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
masih committed Jan 27, 2025
1 parent 6602308 commit 9a3153d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions f3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func TestF3DynamicManifest_RebootstrapWithCompression(t *testing.T) {

func TestF3LateBootstrap(t *testing.T) {
env := newTestEnvironment(t).withNodes(2).start()

env.logStatus()
// Wait till we're "caught up".
bootstrapInstances := uint64(env.manifest.EC.Finality/(gpbft.ChainDefaultLen-1)) + 1
env.waitForInstanceNumber(bootstrapInstances, 30*time.Second, true)
Expand Down Expand Up @@ -541,7 +541,6 @@ func (e *testEnv) waitForEpochFinalized(epoch int64) {
// here and reduce the clock advance to give messages a chance of being
// delivered in time. See:
// - https://github.com/filecoin-project/go-f3/issues/818
time.Sleep(20 * time.Millisecond)
for _, nd := range e.nodes {
if nd.f3 == nil || !nd.f3.IsRunning() {
continue
Expand Down

0 comments on commit 9a3153d

Please sign in to comment.