mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Update ReplicationController event watch check
This commit is contained in:
parent
054a886bf9
commit
c715fec47d
@ -256,9 +256,7 @@ var _ = SIGDescribe("ReplicationController", func() {
|
|||||||
|
|
||||||
ginkgo.By("waiting for ReplicationController is have a DeletionTimestamp")
|
ginkgo.By("waiting for ReplicationController is have a DeletionTimestamp")
|
||||||
for event := range rcWatchChan {
|
for event := range rcWatchChan {
|
||||||
rc, ok := event.Object.(*v1.ReplicationController)
|
if event.Type == "DELETED" {
|
||||||
framework.ExpectEqual(ok, true, "Unable to convert type of ReplicationController watch event")
|
|
||||||
if rc.ObjectMeta.DeletionTimestamp != nil {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user