mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 07:28:14 +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 Kubernetes-commit: 5e7ed7b86d26b651f1ef78a794cdc03fa945a3ce
This commit is contained in:
parent
bfd1732c49
commit
3da398aea9
@ -1098,8 +1098,7 @@ func testReleaseOnCancellation(t *testing.T, objectType string) {
|
||||
|
||||
resourceLockConfig := rl.ResourceLockConfig{
|
||||
Identity: "baz",
|
||||
// TODO - uncomment this to introduce errors
|
||||
// EventRecorder: &record.FakeRecorder{},
|
||||
EventRecorder: &record.FakeRecorder{},
|
||||
}
|
||||
c := &fake.Clientset{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user