Software /
code /
prosody
Changeset
7508:736dea7b99ec
test_util_queue: Reduce iteration count of loop and add asserts
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 20 Jul 2016 18:07:10 +0200 |
parents | 7507:11e8c605a591 |
children | 7509:d4bd036e679b |
files | tests/test_util_queue.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_util_queue.lua Wed Jul 20 17:24:49 2016 +0200 +++ b/tests/test_util_queue.lua Wed Jul 20 18:07:10 2016 +0200 @@ -42,9 +42,9 @@ 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