Skip to content

Commit

Permalink
fixup: docker_test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hhsnopek committed Oct 22, 2022
1 parent 7272212 commit a3c7654
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,16 @@ func TestContainerTerminationRemovesDockerImage(t *testing.T) {
}
imageID := resp.Config.Image

CleanupContainer(t, ctx, container)
err = container.Terminate(ctx)
if err != nil {
t.Fatal(err)
}

_, _, err = client.ImageInspectWithRaw(ctx, imageID)
if err == nil {
t.Fatal("custom built image should have been removed")
t.Fatal("custom built image should have been removed", err)
} else {
t.Fatalf("unexpected error: %s", err)
}
})
}
Expand Down

0 comments on commit a3c7654

Please sign in to comment.