Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev tests to use current APIs #175

Merged
merged 3 commits into from
Apr 18, 2023
Merged

Update dev tests to use current APIs #175

merged 3 commits into from
Apr 18, 2023

Conversation

bmeike
Copy link
Contributor

@bmeike bmeike commented Apr 17, 2023

Two big test suites: DatabaseTest and ReplicatorCollectionTest
Also, port CBL-4423 (stop live queries on DB close) to beryllium

@bmeike bmeike requested review from pasin and borrrden April 17, 2023 17:00
@bmeike bmeike self-assigned this Apr 17, 2023

if (e != null) err.compareAndSet(null, e)

if (stoppedStates.contains(level)) latch.countDown()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted : if there is a test that add docs in different rate (e.g. keep adding docs in parallels), the IDLE status cannot be trust to determine that the replicator is finished replicating as it could be BUSY -> IDLE -> BUSY - IDLE. I recently found this issue in one of the LiteCore's flaky tests.

Copy link
Member

@borrrden borrrden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming these were run somewhere since there is no PR validation on this repo

@bmeike
Copy link
Contributor Author

bmeike commented Apr 18, 2023

@borrrden : yep. As discussed, I have yet to come up with any reasonable way of doing pre-commit validation on a submodule.

This stuff will be validated as part of the root module commit.

@bmeike bmeike merged commit 2f91403 into master Apr 18, 2023
bmeike added a commit that referenced this pull request Apr 18, 2023
    * CBL-3887: ReplicatorCollectionTest rewritten to avoid using deprecated methods
    * DatabaseTest no longer depends on deprecated API
    * New, non-expired certs for CBLTrustManagerTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants