Fix test cases

This commit is contained in:
Sebastian Messmer 2016-09-25 03:01:29 +02:00
parent 443298844e
commit 8ae2dee7fc

View File

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