Remove sleep and final fetch of ReplicationController

This commit is contained in:
Caleb Woodbine 2020-03-04 11:14:03 +13:00
parent 3b1e2249b0
commit 054a886bf9

View File

@ -262,13 +262,6 @@ var _ = SIGDescribe("ReplicationController", func() {
break
}
}
ginkgo.By("waiting for 10 seconds to ensure that it's deleted")
time.Sleep(10 * time.Second)
// Get the ReplicationController to check that it's deleted
ginkgo.By("fetching the ReplicationController to ensure that it's deleted")
_, err = f.ClientSet.CoreV1().ReplicationControllers(testRcNamespace).Get(context.TODO(), testRcName, metav1.GetOptions{})
framework.ExpectError(err, "Failed to delete ReplicationController")
})
})