Skip to content

Commit ccb6a94

Browse files
committed
Delete containers inside the test
Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 4ff9d06 commit ccb6a94

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

runtime/service_integ_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ func TestMultipleVMs_Isolated(t *testing.T) {
269269
}
270270
m := testing.MainStart(runner, tests, nil, nil)
271271
code := m.Run()
272-
for _, container := range runner.containers {
273-
err := container.Delete(context.Background())
274-
t.Log(err)
275-
}
276272

277273
os.Exit(code)
278274
}
@@ -454,6 +450,8 @@ func (runner *testMultipleVMsRunner) testMultipleExecs(
454450
firecrackeroci.WithVMID(vmIDStr),
455451
),
456452
)
453+
defer newContainer.Delete(ctx)
454+
457455
require.NoError(t, err, "failed to create container %s", containerName)
458456
runner.containers = append(runner.containers, newContainer)
459457

0 commit comments

Comments
 (0)