wait_for_flusher_to_settle: Use wait_for_stat_to_be() 11/69011/5
authorDave Rigby <daver@couchbase.com>
Fri, 14 Oct 2016 16:04:34 +0000 (17:04 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 31 Oct 2016 14:49:40 +0000 (14:49 +0000)
commit0a89280e24adc0a09730c841350ed39d49c1ab7c
tree30ef1c767040fe3c32d416ad9b1b7a2825f4cd58
parent4d23f3cfdffbce96e33f3d83d102cd4f7bb771d3
wait_for_flusher_to_settle: Use wait_for_stat_to_be()

wait_for_stat_to_be() records the last value (in current) which makes
it easier to debug issues when values arn't as expected. Additionally
this simplifies the code in wait_for_flusher_to_settle.

Change-Id: I601ab4e8b605c937a86b802746cad691ac659308
Reviewed-on: http://review.couchbase.org/69011
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
tests/ep_test_apis.cc