diff options
author | Anton Shestakov <av6@dwimlabs.net> | 2016-07-21 01:23:32 +0800 |
---|---|---|
committer | Anton Shestakov <av6@dwimlabs.net> | 2016-07-21 01:23:32 +0800 |
commit | 1659995fb562c786705ae4f34e94813b0874b2b7 (patch) | |
tree | f9f65528febe71e44382fabf5ed6404c293d0916 /tests/test_util_queue.lua | |
parent | 6c54088074936289bc0d5f9d33b5d8934df05dee (diff) | |
download | prosody-1659995fb562c786705ae4f34e94813b0874b2b7.tar.gz prosody-1659995fb562c786705ae4f34e94813b0874b2b7.zip |
test_util_queue: finish stress-test by emptying the queue
Diffstat (limited to 'tests/test_util_queue.lua')
-rw-r--r-- | tests/test_util_queue.lua | 2 |
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 |