[Cuis-dev] BaseImageTests for 5302
ken.dickey at whidbey.com
ken.dickey at whidbey.com
Wed Jun 22 15:01:43 PDT 2022
On 2022-06-22 05:06, Juan Vuletich wrote:
..
> But #grabProcessorFor:onTimeout: already have tests.
>
> This test is verifying #valueWithin:onTimeout:. It should work ok even
> in the presence of other processes. All we need is a larger value in
> the assert: It still needs to be smaller than one second, or the test
> would be tested nothing.
The problem is that Time class>>millisecondsToRun: is prempted.
Running the code without preemption (see attached) and the SUnit tests
all pass.
The problem is with the preemption, not with the duration values.
Perhaps #Time class>>unpreemptedMillisecondsToRun: ??
HTH,
-KenD
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TimeClass-millisecondsToRun.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220622/9f60a2f3/attachment.ksh>
More information about the Cuis-dev
mailing list