aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/core/GpgCoreTestCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/core/GpgCoreTestCache.cpp')
-rw-r--r--src/test/core/GpgCoreTestCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/core/GpgCoreTestCache.cpp b/src/test/core/GpgCoreTestCache.cpp
index a791bf8d..f3d74b31 100644
--- a/src/test/core/GpgCoreTestCache.cpp
+++ b/src/test/core/GpgCoreTestCache.cpp
@@ -48,10 +48,10 @@ TEST_F(GpgCoreTest, CoreCacheTestB) {
}
TEST_F(GpgCoreTest, CoreCacheTestC) {
- CacheManager::GetInstance().SaveCache("ABCDEF", "DEFEEE", 2);
+ CacheManager::GetInstance().SaveCache("ABCDEF", "DEFEEE", 1);
ASSERT_EQ(CacheManager::GetInstance().LoadCache("ABCDEF"), QString("DEFEEE"));
- std::this_thread::sleep_for(std::chrono::milliseconds(4000));
- ASSERT_EQ(CacheManager::GetInstance().LoadCache("ABCDEF"), QString(""));
+ std::this_thread::sleep_for(std::chrono::milliseconds(1200));
+ ASSERT_TRUE(CacheManager::GetInstance().LoadCache("ABCDEF") == QString());
}
} // namespace GpgFrontend::Test \ No newline at end of file