aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/concurrency/async.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-18 03:29:15 -0400
committerEduardo Julian2021-08-18 03:29:15 -0400
commite00ba096c8837abe85d366e0c1293c09dbe84d81 (patch)
treedc1f0955d4461ae30bb4945cddd74c462f1aee98 /stdlib/source/test/lux/control/concurrency/async.lux
parent3289b9dcf9d5d1c1e5c380e3185065c8fd32535f (diff)
Some bug fixes.
Diffstat (limited to 'stdlib/source/test/lux/control/concurrency/async.lux')
-rw-r--r--stdlib/source/test/lux/control/concurrency/async.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/test/lux/control/concurrency/async.lux b/stdlib/source/test/lux/control/concurrency/async.lux
index a92a5c44c..f9b917ee5 100644
--- a/stdlib/source/test/lux/control/concurrency/async.lux
+++ b/stdlib/source/test/lux/control/concurrency/async.lux
@@ -107,16 +107,16 @@
(n.+ leftA rightA)))))
(in (do /.monad
[pre (/.future instant.now)
- actual (/.delayed waiting_time expected)
+ actual (/.after waiting_time expected)
post (/.future instant.now)]
- (_.cover' [/.delayed]
+ (_.cover' [/.after]
(and (n.= expected actual)
(i.>= (.int waiting_time)
(duration.millis (instant.span pre post)))))))
(in (do /.monad
[?left (/.or (in leftE)
- (/.delayed waiting_time dummy))
- ?right (/.or (/.delayed waiting_time dummy)
+ (/.after waiting_time dummy))
+ ?right (/.or (/.after waiting_time dummy)
(in rightE))]
(_.cover' [/.or]
(case [?left ?right]
@@ -128,8 +128,8 @@
false))))
(in (do /.monad
[leftA (/.either (in leftE)
- (/.delayed waiting_time dummy))
- rightA (/.either (/.delayed waiting_time dummy)
+ (/.after waiting_time dummy))
+ rightA (/.either (/.after waiting_time dummy)
(in rightE))]
(_.cover' [/.either]
(n.= (n.+ leftE rightE)
@@ -155,9 +155,9 @@
(and yep
(not nope)))))
(in (do /.monad
- [?none (/.time_out 0 (/.delayed waiting_time dummy))
- ?actual (/.time_out waiting_time (in expected))]
- (_.cover' [/.time_out]
+ [?none (/.within 0 (/.after waiting_time dummy))
+ ?actual (/.within waiting_time (in expected))]
+ (_.cover' [/.within]
(case [?none ?actual]
[#.None (#.Some actual)]
(n.= expected actual)