[squeak-dev] The Inbox: KernelTests-jr.383.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jun 21 17:27:45 UTC 2020


A new version of KernelTests was added to project The Inbox:
http://source.squeak.org/inbox/KernelTests-jr.383.mcz

==================== Summary ====================

Name: KernelTests-jr.383
Author: jr
Time: 21 June 2020, 7:27:47.560506 pm
UUID: ecddb3cb-25c9-6c43-a879-59e527a3a9ee
Ancestors: KernelTests-tonyg.382

Test whether Notifications reject the promises of future sends

In my opinion, they should not.

=============== Diff against KernelTests-tonyg.382 ===============

Item was added:
+ ----- Method: PromiseTest>>testFutureResolutionWithNotification (in category 'tests - future') -----
+ testFutureResolutionWithNotification
+ 	| p |
+ 	p := [Notification signal: 'should not reject'. 3 + 4] future value.
+ 	self assert: (self waitUntil: [p isResolved or: [p isRejected]] orCycleCount: 100).
+ 	self assert: p isResolved.
+ 	self assert: 7 equals: p value.!



More information about the Squeak-dev mailing list