Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit d0723dc

Browse files
committed
Avoiding more ACI flakyness, some fixed in a804136 (fixing docker prune --dry-run --force , exact same issue here with docker prune --force)
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 6d34f28 commit d0723dc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/aci-e2e/e2e-aci_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,12 @@ func TestContainerRunAttached(t *testing.T) {
500500
l := Lines(res.Stdout())
501501
assert.Equal(t, 2, len(l))
502502

503-
res = c.RunDockerCmd("prune", "--force")
503+
res = c.RunDockerOrExitError("prune", "--force")
504+
if strings.Contains(res.Stderr(), "unsupported protocol scheme") { //Flaky strange error on azure SDK call happening only during prune --force
505+
time.Sleep(1 * time.Second)
506+
res = c.RunDockerCmd("prune", "--force")
507+
}
508+
504509
assert.Equal(t, "Deleted resources:\n"+container+"\nTotal CPUs reclaimed: 0.10, total memory reclaimed: 0.10 GB\n", res.Stdout())
505510

506511
res = c.RunDockerCmd("ps", "--all")

0 commit comments

Comments
 (0)