From 0a7fce670195f05944dd2b3ff3bb3f2b07efa6b1 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 30 Sep 2017 22:44:24 +0100 Subject: [PATCH] Improve CryConfigLoaderTest --- test/cryfs/config/CryConfigLoaderTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cryfs/config/CryConfigLoaderTest.cpp b/test/cryfs/config/CryConfigLoaderTest.cpp index 9eb373d1..ac109fee 100644 --- a/test/cryfs/config/CryConfigLoaderTest.cpp +++ b/test/cryfs/config/CryConfigLoaderTest.cpp @@ -102,7 +102,7 @@ public: } void ChangeEncryptionKey(const string &encKey, const string& password = "mypassword") { - auto cfg = loader(password, false).loadOrCreate(file.path()).value().configFile; + auto cfg = CryConfigFile::load(file.path(), password).value(); cfg.config()->SetEncryptionKey(encKey); cfg.save(); } @@ -121,7 +121,7 @@ public: } void ChangeFilesystemID(const CryConfig::FilesystemID &filesystemId, const string& password = "mypassword") { - auto cfg = loader(password, false).loadOrCreate(file.path()).value().configFile; + auto cfg = CryConfigFile::load(file.path(), password).value(); cfg.config()->SetFilesystemId(filesystemId); cfg.save(); }