mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
util.async: tests: remove obsolete code and comments
This commit is contained in:
parent
3f856fe199
commit
f172b0b10d
1 changed files with 0 additions and 5 deletions
|
@ -323,7 +323,6 @@ describe("util.async", function()
|
||||||
r:run(2);
|
r:run(2);
|
||||||
assert(r.state == "ready");
|
assert(r.state == "ready");
|
||||||
|
|
||||||
local dones = {};
|
|
||||||
r:run(3);
|
r:run(3);
|
||||||
assert(r.state == "waiting");
|
assert(r.state == "waiting");
|
||||||
r:run(3);
|
r:run(3);
|
||||||
|
@ -362,7 +361,6 @@ describe("util.async", function()
|
||||||
r:run(2);
|
r:run(2);
|
||||||
assert(r.state == "ready");
|
assert(r.state == "ready");
|
||||||
|
|
||||||
local dones = {};
|
|
||||||
r:run(3);
|
r:run(3);
|
||||||
assert(r.state == "waiting");
|
assert(r.state == "waiting");
|
||||||
r:run(3);
|
r:run(3);
|
||||||
|
@ -414,7 +412,6 @@ describe("util.async", function()
|
||||||
r1:run(2);
|
r1:run(2);
|
||||||
assert(r1.state == "ready");
|
assert(r1.state == "ready");
|
||||||
|
|
||||||
local dones = {};
|
|
||||||
r1:run(3);
|
r1:run(3);
|
||||||
assert(r1.state == "waiting");
|
assert(r1.state == "waiting");
|
||||||
r1:run(3);
|
r1:run(3);
|
||||||
|
@ -492,7 +489,6 @@ describe("util.async", function()
|
||||||
r1:run(5);
|
r1:run(5);
|
||||||
assert.equal(r1.state, "ready");
|
assert.equal(r1.state, "ready");
|
||||||
|
|
||||||
local dones = {};
|
|
||||||
r1:run(3);
|
r1:run(3);
|
||||||
assert.equal(r1.state, "waiting");
|
assert.equal(r1.state, "waiting");
|
||||||
r1:run(5); -- Will error, when we get to it
|
r1:run(5); -- Will error, when we get to it
|
||||||
|
@ -537,7 +533,6 @@ describe("util.async", function()
|
||||||
assert.equal(r1.state, "ready");
|
assert.equal(r1.state, "ready");
|
||||||
|
|
||||||
assert.equal(r1.state, "ready");
|
assert.equal(r1.state, "ready");
|
||||||
--for k, v in ipairs(l1) do print(k,v) end
|
|
||||||
end);
|
end);
|
||||||
|
|
||||||
it("should support multiple done() calls", function ()
|
it("should support multiple done() calls", function ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue