mirror of
https://github.com/docker/compose.git
synced 2025-07-28 08:04:09 +02:00
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 <guillaume.tardif@gmail.com>
This commit is contained in:
parent
6d34f28beb
commit
d0723dcb3d
@ -500,7 +500,12 @@ func TestContainerRunAttached(t *testing.T) {
|
|||||||
l := Lines(res.Stdout())
|
l := Lines(res.Stdout())
|
||||||
assert.Equal(t, 2, len(l))
|
assert.Equal(t, 2, len(l))
|
||||||
|
|
||||||
|
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")
|
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())
|
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")
|
res = c.RunDockerCmd("ps", "--all")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user