changeset 8653 | 2f133b6e8740 |
parent 8652 | 9246f64d6f1e |
child 8672 | 2aa85b0cd2b8 |
--- a/spec/util_async_spec.lua Thu Mar 22 07:56:01 2018 +0000 +++ b/spec/util_async_spec.lua Thu Mar 22 11:56:03 2018 +0000 @@ -602,5 +602,13 @@ async.once(f); assert.spy(f).was.called(); end); + it("should propagate errors", function () + local function should_error() + async.once(function () + error("hello world"); + end); + end; + assert.error_matches(should_error, "hello world"); + end); end); end);