Skip to content

Commit

Permalink
fix: TerminateSleep argument order (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-oksaku authored Nov 29, 2022
1 parent 40a5546 commit e1fb5bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func TestUnmocked(t *testing.T) {
shell string
}{
{"ls", nil, "/bin/sh"},
{"sleep 1", nil, "/bin/sh"},
{"echo 'foo'", nil, "/bin/sh"},
{"ls && ls ", nil, "/bin/sh"},
// Large single-line
{"openssl rand -hex 1000000", nil, "/bin/sh"},
Expand Down
2 changes: 1 addition & 1 deletion launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ func launchAction(api screwdriver.API, buildID int, rootDir, emitterPath, metaSp
}

prepareExit(screwdriver.Failure, buildID, api, metaSpace, "")
TerminateSleep(sourceDir, launchShellBin, true)
TerminateSleep(launchShellBin, sourceDir, true)
cleanExit()
return nil
}
Expand Down

0 comments on commit e1fb5bc

Please sign in to comment.