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
commit0a1f044d219e82e1fd7f3fb05a46cc2ed76bba26 (patch)
treef9f65528febe71e44382fabf5ed6404c293d0916 /tests
parentaa7cfad76e75129c2e6dbe00e79b535c55581dc0 (diff)
downloadprosody-0a1f044d219e82e1fd7f3fb05a46cc2ed76bba26.tar.gz
prosody-0a1f044d219e82e1fd7f3fb05a46cc2ed76bba26.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