Fix failing masterlist update test

For some reason this test started failing, it was relying on the
standard library implementation, so perhaps it was a MSVC update that
did it.
This commit is contained in:
Oliver Hamlet
2020-04-03 20:55:54 +01:00
parent 6365f9cae1
commit b2f944b92f
2 changed files with 2 additions and 2 deletions
@@ -235,7 +235,7 @@ TEST_P(DatabaseInterfaceTest, writeUserMetadataShouldShouldWriteUserMetadata) {
TEST_P(DatabaseInterfaceTest,
updateMasterlistShouldThrowIfTheMasterlistPathGivenIsInvalid) {
EXPECT_THROW(db_->UpdateMasterlist(";//\?", url_, branch_), std::exception);
EXPECT_THROW(db_->UpdateMasterlist("//\?", url_, branch_), std::exception);
}
TEST_P(DatabaseInterfaceTest,
+1 -1
View File
@@ -82,7 +82,7 @@ INSTANTIATE_TEST_CASE_P(,
TEST_P(MasterlistTest, updateShouldThrowIfAnInvalidPathIsGiven) {
Masterlist masterlist;
EXPECT_THROW(masterlist.Update(";//\?", repoUrl, repoBranch),
EXPECT_THROW(masterlist.Update("//\?", repoUrl, repoBranch),
std::system_error);
}