Fix test cases

This commit is contained in:
Sebastian Messmer 2018-12-18 21:36:13 -08:00
parent 9ebd3d754c
commit 5d77a82c7f

View File

@ -89,7 +89,7 @@ TEST_F(CliTest_IntegrityCheck, givenIncorrectFilesystemId_thenFails) {
modifyFilesystemId(); modifyFilesystemId();
EXPECT_RUN_ERROR( EXPECT_RUN_ERROR(
args, args,
"Error: The filesystem id in the config file is different to the last time we loaded a filesystem from this basedir.", "Error 20: The filesystem id in the config file is different to the last time we loaded a filesystem from this basedir.",
ErrorCode::FilesystemIdChanged ErrorCode::FilesystemIdChanged
); );
} }
@ -101,7 +101,7 @@ TEST_F(CliTest_IntegrityCheck, givenIncorrectFilesystemKey_thenFails) {
modifyFilesystemKey(); modifyFilesystemKey();
EXPECT_RUN_ERROR( EXPECT_RUN_ERROR(
args, args,
"Error: The filesystem encryption key differs from the last time we loaded this filesystem. Did an attacker replace the file system?", "Error 21: The filesystem encryption key differs from the last time we loaded this filesystem. Did an attacker replace the file system?",
ErrorCode::EncryptionKeyChanged ErrorCode::EncryptionKeyChanged
); );
} }