mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user