Skip to content

Commit 36ad760

Browse files
dprotasok8s-publishing-bot
authored andcommitted
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: b7e3af7579fb9f79d3304ba78f73f80efde805ae
1 parent 89beb5b commit 36ad760

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/leaderelection/leaderelection_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1097,9 +1097,8 @@ func testReleaseOnCancellation(t *testing.T, objectType string) {
10971097
)
10981098

10991099
resourceLockConfig := rl.ResourceLockConfig{
1100-
Identity: "baz",
1101-
// TODO - uncomment this to introduce errors
1102-
// EventRecorder: &record.FakeRecorder{},
1100+
Identity: "baz",
1101+
EventRecorder: &record.FakeRecorder{},
11031102
}
11041103
c := &fake.Clientset{}
11051104

0 commit comments

Comments
 (0)