Close events recording sink in integration tests
This commit is contained in:
@@ -424,8 +424,7 @@ func InitTestSchedulerWithOptions(
|
||||
t.Fatalf("Couldn't create scheduler: %v", err)
|
||||
}
|
||||
|
||||
stopCh := make(chan struct{})
|
||||
eventBroadcaster.StartRecordingToSink(stopCh)
|
||||
eventBroadcaster.StartRecordingToSink(testCtx.Ctx.Done())
|
||||
|
||||
return testCtx
|
||||
}
|
||||
|
Reference in New Issue
Block a user