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 | 6c54088074936289bc0d5f9d33b5d8934df05dee (patch) | |
tree | 3b5da9581597365df9851602c0595614bd132818 /tests | |
parent | e740cc41bf5a275b8bd070bfff29bd439bca4be5 (diff) | |
download | prosody-6c54088074936289bc0d5f9d33b5d8934df05dee.tar.gz prosody-6c54088074936289bc0d5f9d33b5d8934df05dee.zip |
test_util_queue: Reduce iteration count of loop and add asserts
Diffstat (limited to 'tests')
-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 |