Skip to content

Commit

Permalink
Fixed timeout for short number of processes
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed Jun 25, 2018
1 parent 2e012d5 commit 57a0920
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ launchAndWaitForProcessesToFinish: numberOfProcesses

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


Expand Down

0 comments on commit 57a0920

Please sign in to comment.