Skip to content

Commit dd20ec0

Browse files
Fix a crash in ApiTests
Fix occurred due to missing cache. Resolves: OLPEDGE-1153 Signed-off-by: Mykhailo Kuchma <[email protected]>
1 parent 8b2c430 commit dd20ec0

File tree

1 file changed

+4
-0
lines changed
  • tests/functional/olp-cpp-sdk-dataservice-read

1 file changed

+4
-0
lines changed

tests/functional/olp-cpp-sdk-dataservice-read/ApiTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include <olp/authentication/TokenEndpoint.h>
3030
#include <olp/authentication/TokenProvider.h>
3131
#include <olp/authentication/TokenResult.h>
32+
#include <olp/core/cache/CacheSettings.h>
33+
#include <olp/core/cache/KeyValueCache.h>
3234
#include <olp/core/client/ApiError.h>
3335
#include <olp/core/client/HRN.h>
3436
#include <olp/core/client/OlpClient.h>
@@ -67,6 +69,8 @@ class ApiTest : public ::testing::Test {
6769
settings_ = std::make_shared<olp::client::OlpClientSettings>();
6870
settings_->authentication_settings = auth_client_settings;
6971
settings_->network_request_handler = network;
72+
settings_->cache =
73+
olp::client::OlpClientSettingsFactory::CreateDefaultCache({});
7074

7175
client_ = olp::client::OlpClientFactory::Create(*settings_);
7276
}

0 commit comments

Comments
 (0)