mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
nit: use context.WithoutCancel instead of Background
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user