From: Dimitry Andric Date: Wed, 14 Sep 2022 10:26:50 +0000 (+0200) Subject: lib-index/test-mail-index-transaction-update.c: Cleanup timezone instances X-Git-Tag: 2.4.0~3441 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=867a37fa7b74f798a931fb582214b5377f57610e;p=thirdparty%2Fdovecot%2Fcore.git lib-index/test-mail-index-transaction-update.c: Cleanup timezone instances In 1a7b1f66fe the non-standard extern timezone was partially removed, but some instances were left. Since the test is supposed to run with TZ=UTC, and timezone would have been zero anyway, remove them all. --- diff --git a/src/lib-index/test-mail-index-transaction-update.c b/src/lib-index/test-mail-index-transaction-update.c index 632265025a..fb1b98e737 100644 --- a/src/lib-index/test-mail-index-transaction-update.c +++ b/src/lib-index/test-mail-index-transaction-update.c @@ -648,13 +648,13 @@ static void test_mail_index_update_day_first_uid(void) i_zero(&hdr); for (j = 0; j < N_ELEMENTS(hdr.day_first_uid); j++) hdr.day_first_uid[j] = 8-j; - hdr.day_stamp = tests[i].old_day_stamp + timezone; + hdr.day_stamp = tests[i].old_day_stamp; memcpy(t->post_hdr_change, &hdr, sizeof(hdr)); - mail_index_update_day_headers(t, tests[i].now + timezone); + mail_index_update_day_headers(t, tests[i].now); struct mail_index_header new_hdr; memcpy(&new_hdr, t->post_hdr_change, sizeof(new_hdr)); - test_assert_idx(new_hdr.day_stamp == tests[i].new_day_stamp + timezone, i); + test_assert_idx(new_hdr.day_stamp == tests[i].new_day_stamp, i); test_assert_idx(memcmp(new_hdr.day_first_uid, tests[i].new_day_first_uid, sizeof(uint32_t) * 8) == 0, i);