Skip to content

Commit 4438e23

Browse files
committed
Fix missed condition check
1 parent 58737eb commit 4438e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/Core/SQLiteBuildDBTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ TEST(SQLiteBuildDBTest, LockedWhileBuilding) {
9393
bool success = true;
9494
otherBuildDB->getCurrentEpoch(&success, &error);
9595
EXPECT_FALSE(success);
96-
EXPECT_EQ(error, out.str());
96+
EXPECT_TRUE(error.find("database is locked") != std::string::npos);
9797

9898
// Clean up database connections before unlinking
9999
buildDB->buildComplete();

0 commit comments

Comments
 (0)