Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration test: Fix race condition in CoreTest
Motivation ---------- MockConfigProvider had a race condition where the initial ClusterConfig could be populated by a subsequent call to accept(BucketConfig) *before* the initial config was processed, resulting in redundant calls to Node.add/RemoveService(). This would normally be fine, since those methods are idempotent. However, it violated the test assertion that they are called exactly once. Modifications ------------- Don't publish the initial empty config; the tests don't depend on it. Subsequent publications are implicitly serialized because the tests verify the previous config was applied before telliing the mock config provider to accept a new one. Change-Id: Iab2ede125e801b6b35855a7bf1c10c106ee31d20 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/212828 Tested-by: Build Bot <[email protected]> Reviewed-by: David Nault <[email protected]>
- Loading branch information