From 867a37fa7b74f798a931fb582214b5377f57610e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 14 Sep 2022 12:26:50 +0200 Subject: [PATCH] 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. --- src/lib-index/test-mail-index-transaction-update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.3