Skip to content

Commit c573d1a

Browse files
committed
fix: error when compiling with older g++
1 parent bc3257e commit c573d1a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/Test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ void Test::testOptions() {
141141
TEST_ASSERT(c._writeOptions._retryInterval == 5);
142142
TEST_ASSERT(c._writeOptions._maxRetryAttempts == 3);
143143
TEST_ASSERT(c._writeOptions._maxRetryInterval == 300);
144-
//ConnectionInfo connInfo = { "http://localhost:8086", "","", "my-token", 2, "", "", nullptr, false, "" };
145-
ConnectionInfo connInfo = {.serverUrl= "http://localhost:8086", .authToken = "my-token"};
144+
ConnectionInfo connInfo = {
145+
serverUrl: "http://localhost:8086",
146+
bucket: "",
147+
org: "",
148+
authToken: "my-token"
149+
};
146150
HTTPService s(&connInfo);
147151
TEST_ASSERT(!s._httpOptions._connectionReuse);
148152
TEST_ASSERT(s._httpOptions._httpReadTimeout == 5000);

0 commit comments

Comments
 (0)