Skip to content

Commit

Permalink
Fix: Pass empty path for USTORE_FLIGHT_CLIENT
Browse files Browse the repository at this point in the history
  • Loading branch information
DarvinHarutyunyan committed Aug 16, 2023
1 parent e097e0e commit 7b12fa9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ static json_t json_parse(char const* begin, char const* end) {
EXPECT_EQ(json_t::from_msgpack(str_begin(str1), str_end(str1)), json_parse(str_begin(str2), str_end(str2)));

static char const* path() {
#if defined(USTORE_FLIGHT_CLIENT)
return nullptr;
#endif

char* path = std::getenv("USTORE_TEST_PATH");
if (path)
return std::strlen(path) ? path : nullptr;

#if defined(USTORE_FLIGHT_CLIENT)
return nullptr;
#elif defined(USTORE_TEST_PATH)
#if defined(USTORE_TEST_PATH)
return USTORE_TEST_PATH;
#else
return nullptr;
Expand Down

0 comments on commit 7b12fa9

Please sign in to comment.