From 272cf34f21ab1741d24673a7e3b7c95567a74cec Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 16 Apr 2025 20:05:00 +0200 Subject: fix: testing and solve bugs found --- src/test/core/GpgCoreTestKeyModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/core/GpgCoreTestKeyModel.cpp') diff --git a/src/test/core/GpgCoreTestKeyModel.cpp b/src/test/core/GpgCoreTestKeyModel.cpp index 878ea953..1fa7454a 100644 --- a/src/test/core/GpgCoreTestKeyModel.cpp +++ b/src/test/core/GpgCoreTestKeyModel.cpp @@ -183,9 +183,9 @@ TEST_F(GpgCoreTest, GpgKeySignatureTest) { TEST_F(GpgCoreTest, GpgKeyGetterTest) { auto key = GpgKeyGetter::GetInstance(kGpgFrontendDefaultChannel) - .GetKey("9490795B78F8AFE9F93BD09281704859182661FB"); - ASSERT_TRUE(key.IsGood()); - auto keys = GpgKeyGetter::GetInstance(kGpgFrontendDefaultChannel).FetchKey(); + .GetKeyPtr("9490795B78F8AFE9F93BD09281704859182661FB"); + ASSERT_TRUE(key != nullptr); + auto keys = GpgKeyGetter::GetInstance(kGpgFrontendDefaultChannel).Fetch(); EXPECT_GT(keys.size(), 0); ASSERT_TRUE(std::find(keys.begin(), keys.end(), key) != keys.end()); -- cgit v1.2.3