Skip to content

Commit

Permalink
ensure container is removed
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu Mccloskey <[email protected]>
  • Loading branch information
nabuskey committed Oct 26, 2023
1 parent 2d9330a commit a79b6ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/kind/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestReconcileRegistry(t *testing.T) {

// Create registry
err = cluster.ReconcileRegistry(ctx)
defer dockerCli.ContainerRemove(ctx, cluster.getRegistryContainerName(), types.ContainerRemoveOptions{Force: true})
if err != nil {
t.Fatalf("Error reconciling registry: %v", err)
}
Expand All @@ -53,9 +54,4 @@ func TestReconcileRegistry(t *testing.T) {
if err != nil {
t.Fatalf("Error reconciling registry: %v", err)
}

// Cleanup
if err = dockerCli.ContainerRemove(ctx, container.ID, types.ContainerRemoveOptions{Force: true}); err != nil {
t.Fatalf("Error removing registry docker container after reconcile: %v", err)
}
}

0 comments on commit a79b6ec

Please sign in to comment.