Skip to content

Commit d79425f

Browse files
authored
Merge branch 'main' into julien/less-mutexes
2 parents 7f5251d + a793471 commit d79425f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

block/internal/submitting/submitter_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ func TestSubmitter_initializeDAIncludedHeight(t *testing.T) {
235235
}
236236

237237
func TestSubmitter_processDAInclusionLoop_advances(t *testing.T) {
238-
ctx, cancel := context.WithCancel(context.Background())
239-
defer cancel()
238+
ctx := t.Context()
240239

241240
// Clean up any existing visualization server
242241
defer server.SetDAVisualizationServer(nil)
@@ -448,8 +447,7 @@ func (f *fakeSigner) GetPublic() (crypto.PubKey, error) { return nil, nil }
448447
func (f *fakeSigner) GetAddress() ([]byte, error) { return []byte("addr"), nil }
449448

450449
func TestSubmitter_CacheClearedOnHeightInclusion(t *testing.T) {
451-
ctx, cancel := context.WithCancel(context.Background())
452-
defer cancel()
450+
ctx := t.Context()
453451

454452
cm, st := newTestCacheAndStore(t)
455453

0 commit comments

Comments
 (0)