mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-22 05:29:44 +02:00
test: fix timezone for time format tests
This commit is contained in:
parent
1f1d871837
commit
e57931f56d
@ -1,6 +1,7 @@
|
|||||||
package presentation
|
package presentation
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -218,12 +219,14 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitShaSet: set.New[string](),
|
cherryPickedCommitShaSet: set.New[string](),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
sha1 2022-05-13 21:00:00 Jesse Duffield commit1
|
sha1 2022-05-13 12:00:00 Jesse Duffield commit1
|
||||||
sha2 2022-05-14 21:00:00 Jesse Duffield commit2
|
sha2 2022-05-14 12:00:00 Jesse Duffield commit2
|
||||||
`),
|
`),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os.Setenv("TZ", "UTC")
|
||||||
|
|
||||||
focusing := false
|
focusing := false
|
||||||
for _, scenario := range scenarios {
|
for _, scenario := range scenarios {
|
||||||
if scenario.focus {
|
if scenario.focus {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user