Skip to content

Commit a7c6cd2

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: 7622eb6a89cb7f7d62a5c7d1d845959fdc8e268b
1 parent 478748c commit a7c6cd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/leaderelection/leaderelection_test.go

Lines changed: 2 additions & 3 deletions
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)