MB-23990: Fix intermittent hangs in unit test 08/78508/3
authorPremkumar Thangamani <premkumar.thangamani@couchbase.com>
Wed, 24 May 2017 02:28:14 +0000 (19:28 -0700)
committerTrond Norbye <trond.norbye@gmail.com>
Wed, 24 May 2017 22:07:46 +0000 (22:07 +0000)
commita5493828daed68ec522870190878edb5c63b603e
tree82b6bc50d8df8c99fdceade0139e97fbd2ee714b
parentb2610c4f90c1264fcac4ce99697d59b30784f05b
MB-23990: Fix intermittent hangs in unit test

In some scenarios, the io complete notification reached before we start
waiting for it via the condition variable. This results in the test
hanging forever. Now we track the no.of notifications and wait
accordingly

Change-Id: Id9d9404892e111d7d60760d0e9ce727b474c0997
Reviewed-on: http://review.couchbase.org/78508
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
tests/ep_testsuite_dcp.cc