@@ -595,7 +595,7 @@ func Test_ForceStartHeightIdempotency(t *testing.T) {
595595
596596// Test_AccessNodeBackupFunctionality verifies that the specified AccessNode
597597// backup hosts, are used when the primary `AccessNodeHost` is unavailable
598- // or whatever reason.
598+ // for whatever reason.
599599func Test_AccessNodeBackupFunctionality (t * testing.T ) {
600600 srv , err := startEmulator (true , defaultServerConfig ())
601601 require .NoError (t , err )
@@ -614,7 +614,7 @@ func Test_AccessNodeBackupFunctionality(t *testing.T) {
614614 backupSrv , err := startEmulator (true , backupConfg )
615615 require .NoError (t , err )
616616
617- _ , backupCancel := context .WithCancel (context .Background ())
617+ backupCtx , backupCancel := context .WithCancel (context .Background ())
618618 defer func () {
619619 backupCancel ()
620620 backupSrv .Stop ()
@@ -686,7 +686,7 @@ func Test_AccessNodeBackupFunctionality(t *testing.T) {
686686 // This endpoint (`eth_syncing`), will make the following gRPC call,
687687 // `ExecuteScriptAtLatestBlock`. This gRPC call is served by the
688688 // first Emulator process, that is configured as the `AccessNodeHost`.
689- _ , err = ethClient .SyncProgress (context . Background () )
689+ _ , err = ethClient .SyncProgress (ctx )
690690 require .NoError (t , err )
691691
692692 // Shutdown the first Emulator process, that is configured as the
@@ -701,7 +701,7 @@ func Test_AccessNodeBackupFunctionality(t *testing.T) {
701701 assert .Eventually (
702702 t ,
703703 func () bool {
704- _ , err := ethClient .SyncProgress (context . Background () )
704+ _ , err := ethClient .SyncProgress (backupCtx )
705705 return err == nil
706706 },
707707 time .Second * 5 ,
0 commit comments