Skip to content

Commit

Permalink
Increate Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed Jun 25, 2018
1 parent 79318fa commit 5f60811
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ launchAndWaitForProcessesToFinish: numberOfProcesses
Otherwise default sunit test timeout is 1 minute."

| processes |
"We set the sunit test timeout to 1 second per process.
Otherwise default sunit test timeout is 1 minute.
This is for Pharo version >= 6.0"
(self respondsTo: #timeLimit:) ifTrue: [
self timeLimit: numberOfProcesses seconds.
].


processes := (1 to: numberOfProcesses) collect: [ :index |
self newCommand
command: '/bin/sleep';
Expand All @@ -13,4 +21,4 @@ launchAndWaitForProcessesToFinish: numberOfProcesses

processes do: #run.

processes do: [ :command | command waitForExitWithTimeout: 2 second. ]
processes do: [ :command | command waitForExitWithTimeout: 5 seconds ]

0 comments on commit 5f60811

Please sign in to comment.