Commit graph

13 commits

Author SHA1 Message Date
Matthew Wild
081be0d0ed util.async: Add some more tests for wait/done 2018-03-18 22:43:06 +00:00
Matthew Wild
86ac07d8bc util.async: tests: Ensure done() can be called before wait() 2018-03-17 18:23:39 +00:00
Matthew Wild
62e076edbb util.async: tests: Add helper function to create mock watcher callbacks 2018-03-17 18:12:31 +00:00
Kim Alvefur
6dd39bd911 util.async: Trim trailing whitespace in tests [luacheck] 2018-03-17 23:00:04 +01:00
Matthew Wild
0e9588fadb util.async: tests: replace peeking at internal state with monitoring correct callback behaviour 2018-03-17 17:59:58 +00:00
Matthew Wild
fb4be1b7d5 util.async: if debugging is enabled, use runner id in logs 2018-03-17 17:29:13 +00:00
Matthew Wild
f0d4a5254e util.async: ensure change in e77b37de482e applies after out-of-loop resume also 2018-03-17 17:28:07 +00:00
Matthew Wild
3148c6b4f7 util.async: Behaviour change: continue to process queued items after errors 2018-03-17 14:54:48 +00:00
Matthew Wild
7d562e915e util.async: Yet more tests 2018-03-17 11:47:07 +00:00
Matthew Wild
a4d4661846 util.async: Ensure runner is left in correct state after out-of-main-loop error (+tests) 2018-03-16 22:26:15 +00:00
Matthew Wild
05c0a96112 util.async: Add test to ensure waiters throw an error outside async contexts 2018-03-16 22:19:33 +00:00
Matthew Wild
364f1605a8 util.async: Add tests to specifically cover error handling 2018-03-16 17:50:16 +00:00
Matthew Wild
0354f0902a util.async: Add tests 2018-03-16 17:13:57 +00:00