From: Karl Fleischmann Date: Wed, 9 Apr 2025 10:51:36 +0000 (+0200) Subject: imap/test-imap-client-hibernate: Append new unhibernation statistics to expected... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a30e88cd9afd07b5693a846e568083fd754947cf;p=thirdparty%2Fdovecot%2Fcore.git imap/test-imap-client-hibernate: Append new unhibernation statistics to expected fields Forgotten in 3d415cf2dd393e1b4ad6e2be1a06bb221406509f --- diff --git a/src/imap/test-imap-client-hibernate.c b/src/imap/test-imap-client-hibernate.c index 0e352142cc..5240f65a48 100644 --- a/src/imap/test-imap-client-hibernate.c +++ b/src/imap/test-imap-client-hibernate.c @@ -117,7 +117,24 @@ static int imap_hibernate_server(struct test_imap_client_hibernate *ctx) test_assert_strcmp(args[i++], "idle-cmd"); if (ctx->has_mailbox) test_assert_strcmp(args[i++], "notify_fd"); - test_assert(str_begins_with(args[i++], "state=")); + + const char *const stats_prefixes[] = { + "state=", + "fetch_hdr_count=", + "fetch_hdr_bytes=", + "fetch_body_count=", + "fetch_body_bytes=", + "deleted_count=", + "expunged_count=", + "trashed_count=", + "autoexpunged_count=", + "append_count=", + "input_bytes_extra=", + "output_bytes_extra=", + }; + for (size_t p = 0; p < N_ELEMENTS(stats_prefixes); p++) + test_assert(str_begins_with(args[i++], stats_prefixes[p])); + test_assert(args[i] == NULL); i_stream_unref(&input);