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: 7622eb6a89cb7f7d62a5c7d1d845959fdc8e268b
This commit is contained in:
Dave Protasowski
2020-10-27 22:45:33 -04:00
committed by Kubernetes Publisher
parent 478748cad1
commit a7c6cd2afe

View File

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