util.async: Add test to ensure waiters throw an error outside async contexts

remotes/origin/0.11
Matthew Wild 8 years ago
parent b0211d2247
commit 2f1f98e1b5
  1. 5
      spec/util_async_spec.lua

@ -84,6 +84,11 @@ describe("util.async", function()
end);
end);
describe("#waiter", function()
it("should error outside of async context", function ()
assert.has_error(function ()
async.waiter();
end);
end);
it("should work", function ()
local wait, done;

Loading…
Cancel
Save