mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -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:
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"context"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
@@ -69,7 +68,7 @@ func Test_spreadKeysAcrossImportedWallets(t *testing.T) {
|
||||
walletPassword,
|
||||
)
|
||||
require.NoError(t, err)
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
for i := 0; i < numWallets; i++ {
|
||||
w, err := wallet.OpenWallet(ctx, &wallet.Config{
|
||||
WalletDir: filepath.Join(tmpDir, fmt.Sprintf("wallet_%d", i)),
|
||||
|
||||
Reference in New Issue
Block a user