diff --git a/repertory/repertory_test/src/providers_test.cpp b/repertory/repertory_test/src/providers_test.cpp index a0992f7d..b61f0d8c 100644 --- a/repertory/repertory_test/src/providers_test.cpp +++ b/repertory/repertory_test/src/providers_test.cpp @@ -346,7 +346,7 @@ static void get_api_path_from_source(const app_config &cfg, i_provider &provider) { if (provider.get_provider_type() == provider_type::encrypt) { const auto source_path = - utils::path::combine(cfg.get_encrypt_config().path, {"test.txt"}); + utils::path::combine("./test_date/encrypt", {"test.txt"}); std::string api_path{}; EXPECT_EQ(api_error::success, @@ -397,7 +397,7 @@ static void get_directory_item_count(const app_config &cfg, EXPECT_EQ(std::size_t(0U), provider.get_directory_item_count("/not_found")); const auto source_path = - utils::path::combine(cfg.get_encrypt_config().path, {"sub10"}); + utils::path::combine("./test_data/encrypt", {"sub10"}); std::string api_path{}; EXPECT_EQ(api_error::success, @@ -636,7 +636,8 @@ TEST(providers, encrypt_provider) { { app_config cfg(provider_type::encrypt, config_path); - const auto encrypt_path = utils::path::combine(".", {"encrypt"}); + const auto encrypt_path = + utils::path::combine("./test_data/encrypt", {"encrypt"}); EXPECT_STREQ( encrypt_path.c_str(),