1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

test: fix timezone for time format tests

This commit is contained in:
Ryooooooga 2022-05-18 20:47:27 +09:00
parent 1f1d871837
commit e57931f56d
No known key found for this signature in database
GPG Key ID: 07CF200DFCC20C25

View File

@ -1,6 +1,7 @@
package presentation
import (
"os"
"strings"
"testing"
@ -218,12 +219,14 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
bisectInfo: git_commands.NewNullBisectInfo(),
cherryPickedCommitShaSet: set.New[string](),
expected: formatExpected(`
sha1 2022-05-13 21:00:00 Jesse Duffield commit1
sha2 2022-05-14 21:00:00 Jesse Duffield commit2
sha1 2022-05-13 12:00:00 Jesse Duffield commit1
sha2 2022-05-14 12:00:00 Jesse Duffield commit2
`),
},
}
os.Setenv("TZ", "UTC")
focusing := false
for _, scenario := range scenarios {
if scenario.focus {