]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Avoid adding duplicate fields in cache unit tests.
authorsergey.kitov <sergey.kitov@open-xchange.com>
Thu, 1 Sep 2022 13:26:34 +0000 (16:26 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Sep 2022 12:41:34 +0000 (12:41 +0000)
src/lib-index/test-mail-cache-purge.c

index 525754b8a8c58e86516ada87e5f2c4fd04f23cde..790226eda63f393e7b1ffc030962c5d4eafc3613 100644 (file)
@@ -405,7 +405,7 @@ static void test_mail_cache_delete_too_large_int(bool exceed_on_first_write)
 
                /* adding anything more will delete the cache. */
                test_expect_error_string("Cache file too large");
-               test_mail_cache_add_field(&ctx, 1, ctx.cache_field2.idx, "bar1");
+               test_mail_cache_add_field(&ctx, 1, ctx.cache_field3.idx, "bar1");
                test_expect_no_more_errors();
        }
        test_assert(stat(ctx.index->cache->filepath, &st) < 0 && errno == ENOENT);