Update ReplicationController event watch check

This commit is contained in:
Caleb Woodbine 2020-03-04 13:08:59 +13:00
parent 054a886bf9
commit c715fec47d

View File

@ -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
}
}