Replace context.Background with testing.TB.Context where possible (#15416)

* Replace context.Background with testing.TB.Context where possible

* Fix failing tests
This commit is contained in:
Preston Van Loon
2025-06-16 17:09:18 -05:00
committed by GitHub
parent 6a13ba9125
commit 62fec4d1f3
409 changed files with 3175 additions and 3456 deletions

View File

@@ -1,7 +1,6 @@
package deposit_test
import (
"context"
"encoding/binary"
"testing"
@@ -67,7 +66,7 @@ func TestValidatorRegister_OK(t *testing.T) {
},
}
logs, err := testAccount.Backend.Client().FilterLogs(context.Background(), query)
logs, err := testAccount.Backend.Client().FilterLogs(t.Context(), query)
assert.NoError(t, err, "Unable to get logs of deposit contract")
merkleTreeIndex := make([]uint64, 5)