mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +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)
|
t.Fatalf("Couldn't create scheduler: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
stopCh := make(chan struct{})
|
eventBroadcaster.StartRecordingToSink(testCtx.Ctx.Done())
|
||||||
eventBroadcaster.StartRecordingToSink(stopCh)
|
|
||||||
|
|
||||||
return testCtx
|
return testCtx
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user