]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap/test-imap-client-hibernate: Append new unhibernation statistics to expected...
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Wed, 9 Apr 2025 10:51:36 +0000 (12:51 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 10 Apr 2025 06:09:38 +0000 (06:09 +0000)
Forgotten in 3d415cf2dd393e1b4ad6e2be1a06bb221406509f

src/imap/test-imap-client-hibernate.c

index 0e352142ccf828e9f3f6c5d11af92381215c7d6f..5240f65a48e1197a6982f93d998e3b0caa84e065 100644 (file)
@@ -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);