From: Timo Sirainen Date: Thu, 12 Feb 2026 10:23:28 +0000 (+0200) Subject: lib-imap-urlauth: test-imap-urlauth - Remove pointless checks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1137f4a613f24300a0e5f2973a9066fadeff5f45;p=thirdparty%2Fdovecot%2Fcore.git lib-imap-urlauth: test-imap-urlauth - Remove pointless checks These tests were just testing "return 0" stubs. --- diff --git a/src/lib-imap-urlauth/test-imap-urlauth.c b/src/lib-imap-urlauth/test-imap-urlauth.c index 603be7f8fb..e534b80390 100644 --- a/src/lib-imap-urlauth/test-imap-urlauth.c +++ b/src/lib-imap-urlauth/test-imap-urlauth.c @@ -405,25 +405,12 @@ static void test_imap_urlauth_fetch(void) test_end(); } -static void test_imap_urlauth_reset_keys(void) -{ - struct imap_urlauth_context uctx = { - .user = NULL - }; - - test_begin("imap_urlauth_reset_keys()"); - test_out("imap_urlauth_reset_mailbox_key", imap_urlauth_reset_mailbox_key(&uctx, NULL) == 0); - test_out("imap_urlauth_reset_all_keys", imap_urlauth_reset_all_keys(&uctx) == 0); - test_end(); -} - int main(void) { static void (*const test_functions[])(void) = { test_imap_urlauth_check, test_imap_urlauth_generate, test_imap_urlauth_fetch, - test_imap_urlauth_reset_keys, NULL }; return test_run(test_functions);