aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-21 01:23:32 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-21 01:23:32 +0800
commit1659995fb562c786705ae4f34e94813b0874b2b7 (patch)
treef9f65528febe71e44382fabf5ed6404c293d0916 /tests
parent6c54088074936289bc0d5f9d33b5d8934df05dee (diff)
downloadprosody-1659995fb562c786705ae4f34e94813b0874b2b7.tar.gz
prosody-1659995fb562c786705ae4f34e94813b0874b2b7.zip
test_util_queue: finish stress-test by emptying the queue
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util_queue.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_util_queue.lua b/tests/test_util_queue.lua
index afa15e59..e215ba33 100644
--- a/tests/test_util_queue.lua
+++ b/tests/test_util_queue.lua
@@ -46,6 +46,8 @@ function new(new)
assert_equal(q:pop(), i);
assert_is(q:push(i+1));
end
+ assert_equal(q:pop(), 1001);
+ assert_equal(q:count(), 0);
end
do