Skip to content

Commit

Permalink
Merge pull request #163 from ivanilves/fix-registry-run-tests
Browse files Browse the repository at this point in the history
test(api/v1/registry/container): Fix `TestRun` cleanup
  • Loading branch information
ivanilves authored May 13, 2018
2 parents 109227f + 6e83f9c commit 684771b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/v1/registry/container/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 684771b

Please sign in to comment.