Skip to content

Commit

Permalink
Use authentication token in test
Browse files Browse the repository at this point in the history
  • Loading branch information
aruizs committed Feb 1, 2022
1 parent f66e349 commit 6f0ae00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ TEST(UnleashTest, ApplicationHostname) {
TEST_P(UnleashSpecificationTest, TestSet) {
auto testData = GetParam();
auto apiMock = std::make_shared<ApiClientMock>();
unleash::UnleashClient unleashClient = unleash::UnleashClient::create("production", "urlMock").instanceId("intanceId").environment("production").apiClient(apiMock).refreshInterval(1);
unleash::UnleashClient unleashClient = unleash::UnleashClient::create("production", "urlMock").instanceId("intanceId").environment("production").apiClient(apiMock).refreshInterval(1).authentication("clientToken");
EXPECT_CALL(*apiMock, features()).WillRepeatedly(Return(testData.first));
unleashClient.initializeClient();
nlohmann::json testSet = nlohmann::json::parse(testData.second);
Expand Down

0 comments on commit 6f0ae00

Please sign in to comment.