mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
test: fix timezone for time format tests
This commit is contained in:
parent
1f1d871837
commit
e57931f56d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue