mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
e2e: fix network alias test
The logic in the e2e test for multiple network aliases is indicating the test should wait for the containerized nginx to be ready. As this may take some time, the test does an exponential backoff starting at 2050ms. Fix the logic by removing the `Expect(...)` call during the exponential backoff. Otherwise, the test errors immediately. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -407,6 +407,7 @@ var _ = Describe("Podman network", func() {
|
||||
Expect(lines[0]).To(Equal(netName1))
|
||||
Expect(lines[1]).To(Equal(netName2))
|
||||
})
|
||||
|
||||
It("podman network with multiple aliases", func() {
|
||||
var worked bool
|
||||
netName := "aliasTest" + stringid.GenerateNonCryptoID()
|
||||
@ -424,7 +425,7 @@ var _ = Describe("Podman network", func() {
|
||||
// Test curl against the container's name
|
||||
c1 := podmanTest.Podman([]string{"run", "--network=" + netName, nginx, "curl", "web"})
|
||||
c1.WaitWithDefaultTimeout()
|
||||
worked = Expect(c1.ExitCode()).To(BeZero())
|
||||
worked = c1.ExitCode() == 0
|
||||
if worked {
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user