Skip to content
Snippets Groups Projects
Commit 4a0faff0 authored by Nick Draper's avatar Nick Draper
Browse files

changed the property I was using

as there is some strange interplay between datasearch.directories and defaultsave
parent 11848398
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
}); });
auto callCountB = 0; auto callCountB = 0;
auto observerB = auto observerB =
makeMockObserver("defaultsave.directory", makeMockObserver("projectRecovery.secondsBetween",
[&callCountB](const std::string &newValue, [&callCountB](const std::string &newValue,
const std::string &prevValue) -> void { const std::string &prevValue) -> void {
UNUSED_ARG(newValue); UNUSED_ARG(newValue);
...@@ -101,7 +101,7 @@ public: ...@@ -101,7 +101,7 @@ public:
}); });
ConfigService::Instance().setString("datasearch.directories", "/dev/null"); ConfigService::Instance().setString("datasearch.directories", "/dev/null");
ConfigService::Instance().setString("defaultsave.directory", "/dev/null"); ConfigService::Instance().setString("projectRecovery.secondsBetween", "600");
TS_ASSERT_EQUALS(1, callCountA); TS_ASSERT_EQUALS(1, callCountA);
TS_ASSERT_EQUALS(1, callCountB); TS_ASSERT_EQUALS(1, callCountB);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment