Skip to content

Commit

Permalink
Yavors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed May 8, 2024
1 parent b833302 commit 9c265a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ int main(int argc, char *argv[]) {
}

#ifdef CPPREALM_ENABLE_SYNC_TESTS
std::string baas_api_key = getenv("APIKEY");
std::optional<Admin::baas_manager> baas_manager;
if (!baas_api_key.empty()) {
baas_manager.emplace(baas_api_key);
if (const char* api_key = getenv("APIKEY")) {
baas_manager.emplace(std::string(api_key));
baas_manager->start();
auto url = baas_manager->wait_for_container();
Admin::Session::shared().prepare(url);
Expand Down

0 comments on commit 9c265a0

Please sign in to comment.