Skip to content

Commit

Permalink
Improve sync testing reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKiwi committed Apr 29, 2020
1 parent 30c8888 commit 9a8b946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endtoend/endtoend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func runEndToEndTest(t *testing.T, config *types.E2EConfig) {
}
conns = append(conns, syncConn)

// Sleep for a few epochs to give time for the newly started node to sync.
extraTimeToSync := (config.EpochsToRun+config.EpochsToRun/2)*epochSeconds + 30
// Sleep for 15 seconds each epoch that needs to be synced for the newly started node.
extraTimeToSync := (config.EpochsToRun)*epochSeconds + (15 * config.EpochsToRun)
waitForSync := tickingStartTime.Add(time.Duration(extraTimeToSync) * time.Second)
time.Sleep(time.Until(waitForSync))

Expand Down

0 comments on commit 9a8b946

Please sign in to comment.