Skip to content

Commit 4a33d72

Browse files
committed
Disabled ttl based tests for near cache based test cases due to an issue at server side hazelcast/hazelcast#10975.
1 parent 97cdffa commit 4a33d72

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

hazelcast/test/src/HazelcastTests5.cpp

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,13 @@ TEST_P(ClientMapTest, testTryPutRemove)
11721172

11731173
TEST_P(ClientMapTest, testPutTtl)
11741174
{
1175+
if (client_.get_client_config().get_near_cache_config(imap_->get_name()) !=
1176+
nullptr) {
1177+
GTEST_SKIP_(
1178+
"Server side expiry does not send near cache invalidations. "
1179+
"See https://github.com/hazelcast/hazelcast/issues/10975");
1180+
}
1181+
11751182
validate_expiry_invalidations(imap_, [=]() {
11761183
imap_
11771184
->put<std::string, std::string>(
@@ -1182,6 +1189,13 @@ TEST_P(ClientMapTest, testPutTtl)
11821189

11831190
TEST_P(ClientMapTest, testPutConfigTtl)
11841191
{
1192+
if (client_.get_client_config().get_near_cache_config(ONE_SECOND_MAP_NAME) !=
1193+
nullptr) {
1194+
GTEST_SKIP_(
1195+
"Server side expiry does not send near cache invalidations. "
1196+
"See https://github.com/hazelcast/hazelcast/issues/10975");
1197+
}
1198+
11851199
std::shared_ptr<imap> map = client_.get_map(ONE_SECOND_MAP_NAME).get();
11861200
validate_expiry_invalidations(map, [=]() {
11871201
map->put<std::string, std::string>("key1", "value1").get();
@@ -1201,6 +1215,13 @@ TEST_P(ClientMapTest, testPutIfAbsent)
12011215

12021216
TEST_P(ClientMapTest, testPutIfAbsentTtl)
12031217
{
1218+
if (client_.get_client_config().get_near_cache_config(imap_->get_name()) !=
1219+
nullptr) {
1220+
GTEST_SKIP_(
1221+
"Server side expiry does not send near cache invalidations. "
1222+
"See https://github.com/hazelcast/hazelcast/issues/10975");
1223+
}
1224+
12041225
ASSERT_FALSE((imap_
12051226
->put_if_absent<std::string, std::string>(
12061227
"key1", "value1", std::chrono::seconds(10))
@@ -1243,13 +1264,27 @@ TEST_P(ClientMapTest, testSet)
12431264

12441265
TEST_P(ClientMapTest, testSetTtl)
12451266
{
1267+
if (client_.get_client_config().get_near_cache_config(imap_->get_name()) !=
1268+
nullptr) {
1269+
GTEST_SKIP_(
1270+
"Server side expiry does not send near cache invalidations. "
1271+
"See https://github.com/hazelcast/hazelcast/issues/10975");
1272+
}
1273+
12461274
validate_expiry_invalidations(imap_, [=]() {
12471275
imap_->set("key1", "value1", std::chrono::seconds(1)).get();
12481276
});
12491277
}
12501278

12511279
TEST_P(ClientMapTest, testSetConfigTtl)
12521280
{
1281+
if (client_.get_client_config().get_near_cache_config(ONE_SECOND_MAP_NAME) !=
1282+
nullptr) {
1283+
GTEST_SKIP_(
1284+
"Server side expiry does not send near cache invalidations. "
1285+
"See https://github.com/hazelcast/hazelcast/issues/10975");
1286+
}
1287+
12531288
std::shared_ptr<imap> map = client_.get_map(ONE_SECOND_MAP_NAME).get();
12541289
validate_expiry_invalidations(map,
12551290
[=]() { map->set("key1", "value1").get(); });

0 commit comments

Comments
 (0)