MB-19672: Fix intermittent failure of 'test producer stream request (partial)' 33/69233/5
authorDave Rigby <daver@couchbase.com>
Wed, 26 Oct 2016 09:48:33 +0000 (10:48 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 1 Nov 2016 13:39:41 +0000 (13:39 +0000)
commit575919e809460ed47062f41161879feb7b6c65cd
tree00ad8f6d46879ad5151ddba1766875772e5bc255
parent1e0e8ea7e91fdc9e1c68ed2b29dc16373c4062dc
MB-19672: Fix intermittent failure of 'test producer stream request (partial)'

This test was making incorrect assumptions about how / when
checkpoints would be created - it wasn't taking the checkpoint period
(how often we forcefully create new checkpoints) into account in it's
assuptions of checkpoint layout. As such it would occasionally fail if
it took longer than expected to run.

Fix this by essentially disabling chk_period (setting it to an
arbitrarily large value). At the same time make the tests expectations
explicit and check them where possible.

Change-Id: I9944f19d41a0a33064c9c43c8673c7ef9c4a3ab9
Reviewed-on: http://review.couchbase.org/69233
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
tests/ep_testsuite_dcp.cc