Skip to content

Commit ddd2461

Browse files
authored
Failure fix. (#1178)
1 parent 341f98d commit ddd2461

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

hazelcast/test/src/remote_controller_client.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ cluster_version()
7979

8080
version.major = std::stoi(major_minor_patch.at(0));
8181
version.minor = std::stoi(major_minor_patch.at(1));
82-
version.patch = std::stoi(major_minor_patch.at(2));
82+
83+
if (major_minor_patch.size() > 2) {
84+
version.patch = std::stoi(major_minor_patch.at(2));
85+
} else {
86+
version.patch = 0;
87+
}
8388

8489
return version;
8590
}

hazelcast/test/src/sql_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,10 @@ TEST_F(SqlTest, find_with_page_sync_iterator)
15511551

15521552
TEST_F(SqlTest, timeout_for_page_iterator_sync)
15531553
{
1554+
// `TABLE` clause is not supported before 5.0.0
1555+
if (cluster_version() < member::version{ 5, 0, 0 })
1556+
GTEST_SKIP();
1557+
15541558
// `generate_stream(1)` generates a row per seconds, so it will guaranteed
15551559
// that it will timeout
15561560
auto result =

0 commit comments

Comments
 (0)