From 0252c26cb775537e2f4d2e762e636b09cc065fcc Mon Sep 17 00:00:00 2001 From: Bartosz Cichocki Date: Thu, 17 Jun 2021 18:12:08 +0200 Subject: [PATCH] [EGD-6876] Fix Factory Settings Test Fixed factory settings test - the query path was wrongly created --- module-services/service-db/test/test-factory-settings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module-services/service-db/test/test-factory-settings.cpp b/module-services/service-db/test/test-factory-settings.cpp index f809ca22e3528046445d7245160c0c12fa06fc63..b64e43ea259466125eee55bca8ff61a2fbe5ff6b 100644 --- a/module-services/service-db/test/test-factory-settings.cpp +++ b/module-services/service-db/test/test-factory-settings.cpp @@ -56,7 +56,8 @@ TEST_CASE("Factory Settings Init") factory.initDb(&db); settings::EntryPath variablePath{ - "", "", settings::factory::entry_key, "serial", settings::SettingsScope::Global}; + "", "", "", settings::factory::entry_key + std::string("/serial"), settings::SettingsScope::Global}; + auto results = db.query(settings::Statements::getValue, variablePath.to_string().c_str()); REQUIRE(results->getRowCount() == 1); }