node: update node tests

This commit is contained in:
Jeff Schroeder 2024-04-19 13:12:54 -04:00
parent dc4e43da9e
commit dbd7e15781
1 changed files with 3 additions and 3 deletions

View File

@ -840,12 +840,12 @@ func runConsensusTests(t *testing.T, testCases []testCase, numGuardians int) {
<-rootCtx.Done()
assert.NotEqual(t, rootCtx.Err(), context.DeadlineExceeded)
// There are some things that happen outside of the supervisor context and are a bit racey when the root context
// is shutdown. Namely some pkg/db bits, metrics sinks, and p2p logging. This gives them time to shutdown so the
// tests are happy.
wait := 50
zapLogger.Info("Test root context cancelled, waiting %dms for everything to shut down properly...", wait)
time.Sleep(time.Millisecond * wait)
zapLogger.Info("Test root context cancelled, waiting for everything to shut down properly...")
time.Sleep(time.Millisecond * 50)
}
type testCaseGuardianConfig struct {