mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Close events recording sink in integration tests
This commit is contained in:
parent
f0791b5014
commit
61d681387f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user