From 59eb07cd8e568c766c8032cbc84560443168ee0c Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Wed, 21 Oct 2026 15:04:13 +0300 Subject: [PATCH] Increase expiry threshold in LruCacheEviction test In shared containerized environment timeouts may be not stable. Locally it can be reproduced running heavy build in parallel. There's no need to keep this timeout too small as it should just keep the key alive. Relates-To: DATASDK-110 Signed-off-by: Rustam Gamidov --- olp-cpp-sdk-core/tests/cache/DefaultCacheImplTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/olp-cpp-sdk-core/tests/cache/DefaultCacheImplTest.cpp b/olp-cpp-sdk-core/tests/cache/DefaultCacheImplTest.cpp index 6fed681f6..6a5dcb1e3 100644 --- a/olp-cpp-sdk-core/tests/cache/DefaultCacheImplTest.cpp +++ b/olp-cpp-sdk-core/tests/cache/DefaultCacheImplTest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2024 HERE Europe B.V. + * Copyright (C) 2020-2026 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -817,9 +817,9 @@ TEST_F(DefaultCacheImplTest, LruCacheEviction) { const auto not_expired_key = prefix + std::to_string(0); - // Put data that expires after 10 sec and never promoted. + // Put data that expires after 60 sec and never promoted. cache.Put(not_expired_key, - std::make_shared>(binary_data), 10); + std::make_shared>(binary_data), 60); // overflow the mutable cache auto count = 1u;