mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +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")
|
||||
for event := range rcWatchChan {
|
||||
rc, ok := event.Object.(*v1.ReplicationController)
|
||||
framework.ExpectEqual(ok, true, "Unable to convert type of ReplicationController watch event")
|
||||
if rc.ObjectMeta.DeletionTimestamp != nil {
|
||||
if event.Type == "DELETED" {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user