MB-20852 [1/N]: Update tests to facilitate set_vbucket_state changes 10/69010/10
authorDave Rigby <daver@couchbase.com>
Wed, 19 Oct 2016 11:58:11 +0000 (12:58 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 31 Oct 2016 14:50:24 +0000 (14:50 +0000)
commit283a936628c86033e39bc0f686405ac8669ea22b
tree5e4a27d0c690860aad6b9101d14d2ba333a2f553
parentccf75a5485cb241f87d91a6cd221758dd189bcb2
MB-20852 [1/N]: Update tests to facilitate set_vbucket_state changes

Use checkXX() macros instead of cb_assert() in a number of test which
check for number of items enqueued.

Also adjust the tests to find the initial value of ep_total_enqueued
before storing items, and use this when checking for expected
values. This facilitates the tests working once the changes for
MB-20852 add the set_vbucket_state meta-item to disk queues.

Change-Id: I0108cc5b635b5376d5852b513a6ed47e67f1e62b
Reviewed-on: http://review.couchbase.org/69010
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
tests/ep_testsuite.cc
tests/ep_testsuite_common.h