Skip to content

Commit

Permalink
Increase the timeout of waiting for a TCP server job to complete
Browse files Browse the repository at this point in the history
to 120 seconds in all expose tests.
  • Loading branch information
yossisegev committed Feb 24, 2019
1 parent 945942f commit 25870a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/expose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var _ = Describe("Expose", func() {
Expect(err).ToNot(HaveOccurred())

By("Waiting for the pod to report a successful connection attempt")
waitForJobToCompleteWithStatus(&virtClient, job, "success", 60)
waitForJobToCompleteWithStatus(&virtClient, job, "success", 120)
})
})

Expand Down Expand Up @@ -187,7 +187,7 @@ var _ = Describe("Expose", func() {
Expect(err).ToNot(HaveOccurred())

By("Waiting for the pod to report a successful connection attempt")
waitForJobToCompleteWithStatus(&virtClient, job, "success", 60)
waitForJobToCompleteWithStatus(&virtClient, job, "success", 120)
}
})
})
Expand Down Expand Up @@ -223,7 +223,7 @@ var _ = Describe("Expose", func() {
Expect(err).ToNot(HaveOccurred())

By("Waiting for the pod to report a successful connection attempt")
waitForJobToCompleteWithStatus(&virtClient, job, "success", 60)
waitForJobToCompleteWithStatus(&virtClient, job, "success", 120)
})
})

Expand Down Expand Up @@ -265,7 +265,7 @@ var _ = Describe("Expose", func() {
Expect(err).ToNot(HaveOccurred())

By("Waiting for the pod to report a successful connection attempt")
waitForJobToCompleteWithStatus(&virtClient, job, "success", 60)
waitForJobToCompleteWithStatus(&virtClient, job, "success", 120)
}
})
})
Expand Down Expand Up @@ -326,7 +326,7 @@ var _ = Describe("Expose", func() {
Expect(err).ToNot(HaveOccurred())

By("Waiting for the pod to report a successful connection attempt")
waitForJobToCompleteWithStatus(&virtClient, job, "success", 60)
waitForJobToCompleteWithStatus(&virtClient, job, "success", 120)
})
})
})
Expand Down Expand Up @@ -388,7 +388,7 @@ var _ = Describe("Expose", func() {
Expect(err).ToNot(HaveOccurred())

By("Waiting for the pod to report a successful connection attempt")
waitForJobToCompleteWithStatus(&virtClient, job, "success", 60)
waitForJobToCompleteWithStatus(&virtClient, job, "success", 120)

By("Starting an HTTP server on the VM, to verify HTTP connection also succeeds using the exposed VM.")
vmi, err := virtClient.VirtualMachineInstance(vm.Namespace).Get(vm.Name, &k8smetav1.GetOptions{})
Expand Down

0 comments on commit 25870a5

Please sign in to comment.