mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 16:07:29 +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
@ -1097,9 +1097,8 @@ 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