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:
@@ -1097,9 +1097,8 @@ func testReleaseOnCancellation(t *testing.T, objectType string) {
|
||||
)
|
||||
|
||||
resourceLockConfig := rl.ResourceLockConfig{
|
||||
Identity: "baz",
|
||||
// TODO - uncomment this to introduce errors
|
||||
// EventRecorder: &record.FakeRecorder{},
|
||||
Identity: "baz",
|
||||
EventRecorder: &record.FakeRecorder{},
|
||||
}
|
||||
c := &fake.Clientset{}
|
||||
|
||||
|
Reference in New Issue
Block a user