Fix test cases

This commit is contained in:
Sebastian Messmer 2016-09-25 11:41:21 +02:00
parent 6464bfb4b7
commit 54fb6fbd89
1 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ TEST_F(CryConfigLoaderTest, AsksWhenLoadingNewerFilesystem_AnswerNo) {
Load();
EXPECT_TRUE(false); // expect throw
} catch (const std::runtime_error &e) {
EXPECT_THAT(e.what(), HasSubstr("It has to be migrated."));
EXPECT_THAT(e.what(), HasSubstr("Please update your CryFS version."));
}
}
@ -273,6 +273,6 @@ TEST_F(CryConfigLoaderTest, DontMigrateWhenAnsweredNo) {
Load();
EXPECT_TRUE(false); // expect throw
} catch (const std::runtime_error &e) {
EXPECT_THAT(e.what(), HasSubstr("Please update your CryFS version."));
EXPECT_THAT(e.what(), HasSubstr("It has to be migrated."));
}
}