aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/core/GpgCoreTestCache.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-02-03 14:42:38 +0000
committersaturneric <[email protected]>2025-02-03 14:42:38 +0000
commita6f82a3cbdbdd269796fecfb857440fda4e6ac6d (patch)
treed87609a7c8f50079ae648213ca979cb83923bd6d /src/test/core/GpgCoreTestCache.cpp
parentfeat: upgrade gpgme to v1.24.1 (diff)
downloadGpgFrontend-a6f82a3cbdbdd269796fecfb857440fda4e6ac6d.tar.gz
GpgFrontend-a6f82a3cbdbdd269796fecfb857440fda4e6ac6d.zip
feat: allow add and show ADSKdev/2.1.6/adsk
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