Skip to content

Commit 32aa038

Browse files
authored
Merge pull request #610 from zwpaper/master
test: fix channel leak in event broadcaster
2 parents 469dd8e + 9fd54c3 commit 32aa038

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/integration/utils.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ func initTestSchedulerWithOptions(t *testing.T, testCtx *testContext, opts ...sc
197197
t.Fatalf("Couldn't create scheduler: %v", err)
198198
}
199199

200-
stopCh := make(chan struct{})
201-
eventBroadcaster.StartRecordingToSink(stopCh)
200+
eventBroadcaster.StartRecordingToSink(testCtx.Ctx.Done())
202201

203202
return testCtx
204203
}

0 commit comments

Comments
 (0)