There are a lot of things going on here but this gives me a green test run:
Incorrect logic for firing document changed listener
Revert to NQuery and XQuery that create the internal C4Query in a void method, rather than returning
Database test for query listener has redundant logic that seems to prove nothing
Migrate two tests that were testing two modes each into one test each with two variants to be more clear about which one failed
Fix a test issue comparing collections from different databases since that was changed to not be allowed
Change ports on TestBusyPort so that it doesn't fail when I happen to have Sync Gateway running (which uses the same port)
Fix awful error where nativewrapper will never free any native objects because it's ref count starts at 0 instead of 1
Retain C4Collection and C4Socket's that don't get created just for the platform side
Bump LiteCore to 3.3.0-45
Get rid of Jenkins dead weight that is not helping much. This will give more green PR validations, but the post build tests will still be a pain to work with.
There are a lot of things going on here but this gives me a green test run: