Diff

spec/util_async_spec.lua @ 8631:1daabc077393

util.async: tests: remove obsolete code and comments
author Matthew Wild <mwild1@gmail.com>
date Mon, 19 Mar 2018 16:25:02 +0000
parent 8630:deade38ffbbd
child 8632:02b841ed03d1
line wrap: on
line diff
--- a/spec/util_async_spec.lua	Mon Mar 19 16:24:42 2018 +0000
+++ b/spec/util_async_spec.lua	Mon Mar 19 16:25:02 2018 +0000
@@ -323,7 +323,6 @@
 			r:run(2);
 			assert(r.state == "ready");
 
-			local dones = {};
 			r:run(3);
 			assert(r.state == "waiting");
 			r:run(3);
@@ -362,7 +361,6 @@
 			r:run(2);
 			assert(r.state == "ready");
 
-			local dones = {};
 			r:run(3);
 			assert(r.state == "waiting");
 			r:run(3);
@@ -414,7 +412,6 @@
 			r1:run(2);
 			assert(r1.state == "ready");
 
-			local dones = {};
 			r1:run(3);
 			assert(r1.state == "waiting");
 			r1:run(3);
@@ -492,7 +489,6 @@
 			r1:run(5);
 			assert.equal(r1.state, "ready");
 
-			local dones = {};
 			r1:run(3);
 			assert.equal(r1.state, "waiting");
 			r1:run(5); -- Will error, when we get to it
@@ -537,7 +533,6 @@
 			assert.equal(r1.state, "ready");
 
 			assert.equal(r1.state, "ready");
-			--for k, v in ipairs(l1) do print(k,v) end
 		end);
 
 		it("should support multiple done() calls", function ()