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:
Dave Protasowski 2020-10-27 22:45:33 -04:00 committed by Kubernetes Publisher
parent bfd1732c49
commit 3da398aea9

View File

@ -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{}