From a30e88cd9afd07b5693a846e568083fd754947cf Mon Sep 17 00:00:00 2001 From: Karl Fleischmann Date: Wed, 9 Apr 2025 12:51:36 +0200 Subject: [PATCH] imap/test-imap-client-hibernate: Append new unhibernation statistics to expected fields Forgotten in 3d415cf2dd393e1b4ad6e2be1a06bb221406509f --- src/imap/test-imap-client-hibernate.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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); -- 2.47.3