diff --git a/test/CBLTest.cc b/test/CBLTest.cc index 64e0e624..d8ea5629 100644 --- a/test/CBLTest.cc +++ b/test/CBLTest.cc @@ -85,6 +85,10 @@ CBLTest::~CBLTest() { WARN("Failed to close database: " << error.domain << "/" << error.code); CBLDatabase_Release(db); } + + // Reset to the default warning level: + CBLLog_SetConsoleLevel(kCBLLogWarning); + if (CBL_InstanceCount() > 0) CBL_DumpInstances(); CHECK(CBL_InstanceCount() == 0); diff --git a/test/DatabaseTest.cc b/test/DatabaseTest.cc index f3b10eb9..ca51f46d 100644 --- a/test/DatabaseTest.cc +++ b/test/DatabaseTest.cc @@ -1664,6 +1664,8 @@ TEST_CASE_METHOD(DatabaseTest, "Get blob", "[Blob]") { #ifdef COUCHBASE_ENTERPRISE TEST_CASE_METHOD(DatabaseTest, "Close Database with Active Replicator") { + CBLLog_SetConsoleLevel(kCBLLogVerbose); + CBLError error; otherDB = CBLDatabase_Open(kOtherDBName, &kDatabaseConfiguration, &error); REQUIRE(otherDB); @@ -1699,6 +1701,8 @@ TEST_CASE_METHOD(DatabaseTest, "Close Database with Active Replicator") { } TEST_CASE_METHOD(DatabaseTest, "Delete Database with Active Replicator") { + CBLLog_SetConsoleLevel(kCBLLogVerbose); + CBLError error; otherDB = CBLDatabase_Open(kOtherDBName, &kDatabaseConfiguration, &error); REQUIRE(otherDB); diff --git a/test/ReplicatorPropEncTest.cc b/test/ReplicatorPropEncTest.cc index 175deb5e..149040b8 100644 --- a/test/ReplicatorPropEncTest.cc +++ b/test/ReplicatorPropEncTest.cc @@ -624,8 +624,6 @@ TEST_CASE_METHOD(ReplicatorPropertyEncryptionTest, "Skip decryption : ok", "[Rep TEST_CASE_METHOD(ReplicatorPropertyEncryptionTest, "Encryption error", "[Replicator][Encryptable]") { - CBLLog_SetConsoleLevel(kCBLLogVerbose); - auto doc = CBLDocument_CreateWithID("doc1"_sl); auto props = CBLDocument_MutableProperties(doc);