Skip to content

Commit 460fe62

Browse files
committed
fix timezone adjustment in TestCompareRawDiffPatch
1 parent c626b66 commit 460fe62

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
@@ -228,15 +228,15 @@ func TestCompareRawDiffPatch(t *testing.T) {
228228
respTs = respTs.In(time.Local)
229229

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

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

237237
expected := fmt.Sprintf(`From %s Mon Sep 17 00:00:00 2001
238238
From: User One <[email protected]>
239-
Date: %s +0300
239+
Date: %s
240240
Subject: [PATCH] Update README.md
241241
242242
---

0 commit comments

Comments
 (0)