nit: use context.WithoutCancel instead of Background

This commit is contained in:
J
2025-11-25 22:10:05 -08:00
parent 0625353db1
commit 863c0c7404

View File

@@ -50,7 +50,7 @@ func RunContainerAndKillOnCloseOrSkip(t *testing.T, args ...string) string {
t.Cleanup(func() {
// t.Context() is canceled by the time cleanup executes, so it cannot be used here
runDockerAndGetOutputOrSkip(context.Background(), t, "kill", containerID)
runDockerAndGetOutputOrSkip(context.WithoutCancel(t.Context()), t, "kill", containerID)
})
return containerID