Skip to content

Commit

Permalink
Set timezone to UTC in TestSnapshotVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
zhsj committed Nov 12, 2020
1 parent 5570a05 commit 9f8aadb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ func gitCmdOrFatal(t *testing.T, tempdir string, arg ...string) {
}

func TestSnapshotVersion(t *testing.T) {
os.Setenv("TZ", "UTC")
defer os.Unsetenv("TZ")

tempdir, err := ioutil.TempDir("", "dh-make-golang")
if err != nil {
t.Fatalf("Could not create temp dir: %v", err)
Expand Down

0 comments on commit 9f8aadb

Please sign in to comment.