diff --git a/api/v1/registry/container/container_test.go b/api/v1/registry/container/container_test.go index c9e4759..eb75036 100644 --- a/api/v1/registry/container/container_test.go +++ b/api/v1/registry/container/container_test.go @@ -48,9 +48,12 @@ func TestRun(t *testing.T) { port := getRandomPort() - if _, err := run(dc, port); err != nil { + id, err := run(dc, port) + if err != nil { t.Fatal(err.Error()) } + + dc.ForceRemove(id) } func TestRunGuaranteedFailure(t *testing.T) {