Skip to content

Commit 57a0920

Browse files
committed
Fixed timeout for short number of processes
1 parent 2e012d5 commit 57a0920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repository/OSSubprocess-Tests-Stress.package/OSSConcurrentProcessesTest.class/instance/launchAndWaitForProcessesToFinish..st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ launchAndWaitForProcessesToFinish: numberOfProcesses
66

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

1515

0 commit comments

Comments
 (0)