mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Re-add the event recorder in the release test
Prior having a mock recorder would cause panics since the lock would be set to nil on update failures. Now the recorder will use the cached lock
This commit is contained in:
parent
8160ecfd90
commit
5e7ed7b86d
@ -1098,8 +1098,7 @@ func testReleaseOnCancellation(t *testing.T, objectType string) {
|
|||||||
|
|
||||||
resourceLockConfig := rl.ResourceLockConfig{
|
resourceLockConfig := rl.ResourceLockConfig{
|
||||||
Identity: "baz",
|
Identity: "baz",
|
||||||
// TODO - uncomment this to introduce errors
|
EventRecorder: &record.FakeRecorder{},
|
||||||
// EventRecorder: &record.FakeRecorder{},
|
|
||||||
}
|
}
|
||||||
c := &fake.Clientset{}
|
c := &fake.Clientset{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user