mirror of
https://github.com/kubernetes/client-go.git
synced 2026-05-17 13:04:13 +00:00
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:
committed by
Kubernetes Publisher
parent
478748cad1
commit
a7c6cd2afe
@@ -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