We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d4c6d commit 3a952f2Copy full SHA for 3a952f2
tests/integration_test.go
@@ -698,6 +698,14 @@ func Test_AccessNodeBackupFunctionality(t *testing.T) {
698
// `ExecuteScriptAtLatestBlock`. This gRPC call is served by the
699
// first-available AccessNode specified in `AccessNodeBackupHosts`.
700
// In this E2E test, that would be the second Emulator process.
701
- _, err = ethClient.SyncProgress(context.Background())
702
- require.NoError(t, err)
+ assert.Eventually(
+ t,
703
+ func() bool {
704
+ _, err := ethClient.SyncProgress(context.Background())
705
+ return err == nil
706
+ },
707
+ time.Second*5,
708
+ time.Millisecond*500,
709
+ "backup AN should serve requests after primary shutdown",
710
+ )
711
}
0 commit comments