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 | 0a1f044d219e82e1fd7f3fb05a46cc2ed76bba26 (patch) | |
tree | f9f65528febe71e44382fabf5ed6404c293d0916 | |
parent | aa7cfad76e75129c2e6dbe00e79b535c55581dc0 (diff) | |
download | prosody-0a1f044d219e82e1fd7f3fb05a46cc2ed76bba26.tar.gz prosody-0a1f044d219e82e1fd7f3fb05a46cc2ed76bba26.zip |
test_util_queue: finish stress-test by emptying the queue
-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 |