Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/eth1wrap/eth1wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ func TestNoopClient(t *testing.T) {
t.Run("noop run", func(t *testing.T) {
client := eth1wrap.NewDefaultEthClientRunner("")

ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()

// does nothing and immediately returns
require.Eventually(t, func() bool {
Expand Down
6 changes: 2 additions & 4 deletions cmd/createcluster_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,7 @@ func TestTargetGasLimit(t *testing.T) {
// TestKeymanager tests keymanager support by letting create cluster command split a single secret and then receiving those keyshares using test
// keymanager servers. These shares are then combined to create the combined share which is then compared to the original secret that was split.
func TestKeymanager(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()

const testAuthToken = "api-token-test"

Expand Down Expand Up @@ -873,8 +872,7 @@ func TestKeymanager(t *testing.T) {

// TestPublish tests support for uploading the cluster lockfile to obol-api.
func TestPublish(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()

result := make(chan struct{}, 1) // Buffered channel
defer close(result)
Expand Down
3 changes: 1 addition & 2 deletions dkg/dkg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,7 @@ func TestSyncFlow(t *testing.T) {
pIDs, err := lock.PeerIDs()
require.NoError(t, err)

ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()

ctx = log.WithTopic(ctx, "test")
relayAddr := relay.StartRelay(ctx, t)
Expand Down
Loading