Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Make TestTerminateTimeout non-parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed May 18, 2018
1 parent ae002bb commit 1d29a58
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions executor/mock/standalone/standalone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ func TestStandalone(t *testing.T) {
splitName := strings.Split(fullName, ".")
funName := splitName[len(splitName)-1]
testName := strings.Title(funName)
t.Run(testName, wrapTestStandalone(makeTestParallel(addImageNameToTest(fun, testName))))
test := wrapTestStandalone(addImageNameToTest(fun, testName))
if testName != "TestTerminateTimeout" {
test = makeTestParallel(test)
}
t.Run(testName, test)
}
}

Expand Down Expand Up @@ -481,7 +485,7 @@ func testTerminateTimeout(t *testing.T, jobID string) {
}
jobResponse := jobRunner.StartJob(ji)

timer := time.NewTimer(5 * time.Second)
timer := time.NewTimer(15 * time.Second)
// Wait until the task is running
for {
select {
Expand All @@ -495,7 +499,7 @@ func testTerminateTimeout(t *testing.T, jobID string) {
}

}
continuewithjob:
continuewithjob:

// Submit a request to kill the job. Since the
// job does not exit on SIGTERM we expect the kill
Expand Down

0 comments on commit 1d29a58

Please sign in to comment.