diff options
author | Kim Alvefur <zash@zash.se> | 2016-07-20 18:07:10 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-07-20 18:07:10 +0200 |
commit | aa7cfad76e75129c2e6dbe00e79b535c55581dc0 (patch) | |
tree | 3b5da9581597365df9851602c0595614bd132818 | |
parent | fbd4721af01a2a50629ed089739d42adfd7a9dd5 (diff) | |
download | prosody-aa7cfad76e75129c2e6dbe00e79b535c55581dc0.tar.gz prosody-aa7cfad76e75129c2e6dbe00e79b535c55581dc0.zip |
test_util_queue: Reduce iteration count of loop and add asserts
-rw-r--r-- | tests/test_util_queue.lua | 6 |
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 |