Skip to content

Conversation

randomanderson
Copy link
Contributor

repo.deleteAll() creates a variable number of traces depending on the state of the repo. On an empty repo, it creates one trace; otherwise it creates "1+the number of objects in the repo". The lead to a race condition between the traces returned by setup() and and invocation of TEST_WRITER.clear() that happened at the beginning of each test.

Instead of a generic setup()/cleanup(), each test is now responsible for cleaning up the repo and waiting for the appropriate number of traces.

@randomanderson randomanderson requested a review from a team as a code owner September 20, 2019 23:08
@randomanderson randomanderson merged commit ed7165a into master Sep 25, 2019
@randomanderson randomanderson deleted the landerson/couchbase-n branch September 25, 2019 22:41
@tylerbenson tylerbenson added this to the 0.34.0 milestone Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants