aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_util_queue.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-07-20 18:07:10 +0200
committerKim Alvefur <zash@zash.se>2016-07-20 18:07:10 +0200
commitaa7cfad76e75129c2e6dbe00e79b535c55581dc0 (patch)
tree3b5da9581597365df9851602c0595614bd132818 /tests/test_util_queue.lua
parentfbd4721af01a2a50629ed089739d42adfd7a9dd5 (diff)
downloadprosody-aa7cfad76e75129c2e6dbe00e79b535c55581dc0.tar.gz
prosody-aa7cfad76e75129c2e6dbe00e79b535c55581dc0.zip
test_util_queue: Reduce iteration count of loop and add asserts
Diffstat (limited to 'tests/test_util_queue.lua')
-rw-r--r--tests/test_util_queue.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_util_queue.lua b/tests/test_util_queue.lua
index 57fd28e7..afa15e59 100644
--- a/tests/test_util_queue.lua
+++ b/tests/test_util_queue.lua
@@ -42,9 +42,9 @@ function new(new)
end
assert_equal(q:pop(), 1002);
assert_is(q:push(1));
- for i = 1, 1000000 do
- q:pop();
- q:push(i+1);
+ for i = 1, 1000 do
+ assert_equal(q:pop(), i);
+ assert_is(q:push(i+1));
end
end