~aleteoryx/muditaos

cfb2b9cc3d914d1e18bbee8bea04f46e26809c34 — Radoslaw Wicik 4 years ago 37d97a6
[EGD-6645] Fix ContactGroups tests

Fixed Contact Groups tests.
1 files changed, 2 insertions(+), 3 deletions(-)

M module-db/tests/ContactGroups_tests.cpp
M module-db/tests/ContactGroups_tests.cpp => module-db/tests/ContactGroups_tests.cpp +2 -3
@@ 1,6 1,7 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "common.hpp"
#include <catch2/catch.hpp>

#include <Databases/ContactsDB.hpp>


@@ 27,9 28,7 @@ TEST_CASE("Contact Groups tests")
    INFO("sqlite Init");
    Database::initialize();
    const auto contactsPath = (std::filesystem::path{"sys/user"} / "contacts.db");
    if (std::filesystem::exists(contactsPath)) {
        REQUIRE(std::filesystem::remove(contactsPath));
    }
    RemoveDbFiles(contactsPath.stem());

    ContactsDB contactDb{contactsPath.c_str()};
    INFO("contactDB init");