@@ -718,15 +718,15 @@ var _ = SIGDescribe("NetworkPolicy [LinuxOnly]", func() {
718
718
framework .ExpectNoError (err , "Error creating Network Policy %v: %v" , policy .ObjectMeta .Name , err )
719
719
720
720
testCanConnect (f , f .Namespace , "client-a" , service , clientAAllowedPort )
721
- err = f . WaitForPodNotFound ( "client-a" , framework .PodDeleteTimeout )
721
+ e2epod . WaitForPodNotFoundInNamespace ( f . ClientSet , "client-a" , f . Namespace . Name , framework .PodDeleteTimeout )
722
722
framework .ExpectNoError (err , "Expected pod to be not found." )
723
723
724
724
testCannotConnect (f , f .Namespace , "client-b" , service , clientAAllowedPort )
725
- err = f . WaitForPodNotFound ( "client-b" , framework .PodDeleteTimeout )
725
+ e2epod . WaitForPodNotFoundInNamespace ( f . ClientSet , "client-b" , f . Namespace . Name , framework .PodDeleteTimeout )
726
726
framework .ExpectNoError (err , "Expected pod to be not found." )
727
727
728
728
testCannotConnect (f , f .Namespace , "client-a" , service , clientANotAllowedPort )
729
- err = f . WaitForPodNotFound ( "client-a" , framework .PodDeleteTimeout )
729
+ e2epod . WaitForPodNotFoundInNamespace ( f . ClientSet , "client-a" , f . Namespace . Name , framework .PodDeleteTimeout )
730
730
framework .ExpectNoError (err , "Expected pod to be not found." )
731
731
732
732
const (
@@ -765,7 +765,7 @@ var _ = SIGDescribe("NetworkPolicy [LinuxOnly]", func() {
765
765
defer cleanupNetworkPolicy (f , policy )
766
766
767
767
testCannotConnect (f , f .Namespace , "client-b" , service , clientBNotAllowedPort )
768
- err = f . WaitForPodNotFound ( "client-b" , framework .PodDeleteTimeout )
768
+ e2epod . WaitForPodNotFoundInNamespace ( f . ClientSet , "client-b" , f . Namespace . Name , framework .PodDeleteTimeout )
769
769
framework .ExpectNoError (err , "Expected pod to be not found." )
770
770
771
771
testCannotConnect (f , f .Namespace , "client-a" , service , clientBNotAllowedPort )
0 commit comments