Skip to content

Commit 5dae729

Browse files
committed
fix timezone adjustment in TestCompareRawDiffPatch
1 parent 3c02b51 commit 5dae729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/compare_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@ func TestCompareRawDiffPatch(t *testing.T) {
227227
respTs = respTs.In(time.Local)
228228

229229
// Format the timestamp to match the expected format in the patch
230-
customFormat := "Mon, 02 Jan 2006 15:04:05"
230+
customFormat := "Mon, 02 Jan 2006 15:04:05 -0700"
231231
respTsStr := respTs.Format(customFormat)
232232

233233
req := NewRequest(t, "GET", fmt.Sprintf("/user1/test_raw_diff/compare/%s...%s.patch", oldRef.ID.String(), newRef.ID.String()))
234234
resp = session.MakeRequest(t, req, http.StatusOK)
235235

236236
expected := fmt.Sprintf(`From %s Mon Sep 17 00:00:00 2001
237237
From: User One <user1@example.com>
238-
Date: %s +0300
238+
Date: %s
239239
Subject: [PATCH] Update README.md
240240
241241
---

0 commit comments

Comments
 (0)