~aleteoryx/muditaos

0252c26cb775537e2f4d2e762e636b09cc065fcc — Bartosz Cichocki 4 years ago d857c55
[EGD-6876] Fix Factory Settings Test

Fixed factory settings test - the query path was wrongly created
1 files changed, 2 insertions(+), 1 deletions(-)

M module-services/service-db/test/test-factory-settings.cpp
M module-services/service-db/test/test-factory-settings.cpp => module-services/service-db/test/test-factory-settings.cpp +2 -1
@@ 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);
    }