Skip to content

Commit

Permalink
Improving the test of max size of the worker
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Jul 1, 2020
1 parent e1c2179 commit 8f2a24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskIt-Tests/TKTCommonQueueWorkerPoolTest.class.st
Expand Up @@ -49,7 +49,7 @@ TKTCommonQueueWorkerPoolTest >> testWorkerPoolDoesNotExceedPoolSizeWhenSchedulin
1 to: 10 do: [ :i | futures nextPut: (pool future: [ 10 timesRepeat: [ futures nextPut: (pool future: [ totalTasks := totalTasks + 1 ]) ] ]) ].
[ futures isEmpty ] whileFalse: [ futures next waitForCompletion: 100 milliSeconds ].
self assert: totalTasks equals: 100.
self assert: pool size equals: 10
self assert: pool size <= 10
]

{ #category : #tests }
Expand Down

0 comments on commit 8f2a24d

Please sign in to comment.