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

Commit ebe7248

Browse files
authored
Merge pull request #1067 from docker/more_aci_flakyness
Avoiding more ACI flakyness
2 parents 0a0bc53 + d0723dc commit ebe7248

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/aci-e2e/e2e-aci_test.go

+6-1
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)