From d0723dcb3daa940851c6e780647ab92c7919096a Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Tue, 15 Dec 2020 15:44:53 +0100 Subject: [PATCH] Avoiding more ACI flakyness, some fixed in a804136b1c395f3a7d958d2516c8eec45b126ce7 (fixing `docker prune --dry-run --force` , exact same issue here with `docker prune --force`) Signed-off-by: Guillaume Tardif --- tests/aci-e2e/e2e-aci_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/aci-e2e/e2e-aci_test.go b/tests/aci-e2e/e2e-aci_test.go index fdad7d76b..44f46128c 100644 --- a/tests/aci-e2e/e2e-aci_test.go +++ b/tests/aci-e2e/e2e-aci_test.go @@ -500,7 +500,12 @@ func TestContainerRunAttached(t *testing.T) { l := Lines(res.Stdout()) assert.Equal(t, 2, len(l)) - res = c.RunDockerCmd("prune", "--force") + res = c.RunDockerOrExitError("prune", "--force") + if strings.Contains(res.Stderr(), "unsupported protocol scheme") { //Flaky strange error on azure SDK call happening only during prune --force + time.Sleep(1 * time.Second) + res = c.RunDockerCmd("prune", "--force") + } + assert.Equal(t, "Deleted resources:\n"+container+"\nTotal CPUs reclaimed: 0.10, total memory reclaimed: 0.10 GB\n", res.Stdout()) res = c.RunDockerCmd("ps", "--all")