fix(auth): close cancellation and workspace races
This commit is contained in:
@@ -245,8 +245,8 @@ func TestRunnerSurfacesCleanupFailureWithoutContainerName(t *testing.T) {
|
||||
|
||||
func TestRunnerPropagatesAReapingFailure(t *testing.T) {
|
||||
original := terminateProcessForRunner
|
||||
terminateProcessForRunner = func(command *exec.Cmd, done <-chan error) error {
|
||||
_ = terminateProcess(command, done)
|
||||
terminateProcessForRunner = func(process processLifetime, done <-chan error) error {
|
||||
_ = process.terminate(done)
|
||||
return ErrProcessReap
|
||||
}
|
||||
t.Cleanup(func() { terminateProcessForRunner = original })
|
||||
|
||||
Reference in New Issue
Block a user