mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
test: fix timezone for time format tests
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user