Skip to content

Commit 2a07743

Browse files
committed
relax the test
1 parent a1998a1 commit 2a07743

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/auth_test/auth_test.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ TEST_CASE_METHOD(authentication_test, "authentication smoke test")
9090
SECTION("query points")
9191
{
9292
// {"results":[{"series":[{"columns":["time","value"],"name":"test","values":[["2016-10-28T22:11:22.8110348Z",42]]}]}]}
93-
auto res = db.get(std::string("select * from ") + db_name + "..test");
93+
std::string res;
94+
for (int i = 0; i < 10; ++i) {
95+
res = db.get(std::string("select * from ") + db_name + "..test");
96+
if (res.find("41") != std::string::npos && res.find("42") != std::string::npos)
97+
break;
98+
std::this_thread::sleep_for(std::chrono::milliseconds(50));
99+
}
94100
CHECK(res.find("41") != std::string::npos);
95101
CHECK(res.find("42") != std::string::npos);
96102
}

0 commit comments

Comments
 (0)