Close events recording sink in integration tests

This commit is contained in:
Wojciech Tyczyński 2022-05-04 13:59:47 +02:00
parent f0791b5014
commit 61d681387f

View File

@ -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
}