Skip to content

Commit

Permalink
add some sleep wait iptables clean (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
changluyi authored Mar 15, 2023
1 parent 0b8e534 commit 70a220a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/kube-ovn/subnet/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,6 @@ var _ = framework.Describe("[group:subnet]", func() {
ginkgo.By("Creating subnet " + subnetName)
subnet = framework.MakeSubnet(subnetName, "", cidr, "", nil, nil, nil)
subnet = subnetClient.CreateSync(subnet)

ginkgo.By("Creating pod with specify pod ip ")
podIPv4s, podIPv6s := createPodsByRandomIPs(podClient, subnetClient, subnetName, podNamePre, podCount, startIPv4, startIPv6)
subnet = subnetClient.Get(subnetName)
Expand Down Expand Up @@ -751,7 +750,6 @@ var _ = framework.Describe("[group:subnet]", func() {
ginkgo.By("Creating subnet " + subnetName)
subnet = framework.MakeSubnet(subnetName, "", cidr, "", nil, nil, nil)
subnet = subnetClient.CreateSync(subnet)

replicas := int64(5)
deployName = "deployment-" + framework.RandomSuffix()
labels := map[string]string{"app": deployName}
Expand Down Expand Up @@ -939,7 +937,7 @@ var _ = framework.Describe("[group:subnet]", func() {

checkFunc := func(expectFound bool) {
// runGateway wait 3s
time.Sleep(3 * time.Second)
time.Sleep(10 * time.Second)
for _, node := range clusterNodes {
rules, err := node.ListIptableRules("filter")
framework.ExpectNoError(err, "getting node rule failed")
Expand Down

0 comments on commit 70a220a

Please sign in to comment.