Skip to content

Commit

Permalink
set timezone explicitly in the test of hostApp
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Mar 11, 2019
1 parent d87cd79 commit ff2b56c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hosts/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package hosts
import (
"bytes"
"testing"
"time"

"github.com/stretchr/testify/assert"

Expand Down Expand Up @@ -49,6 +50,8 @@ var (
)

func TestHostApp_Run(t *testing.T) {
time.Local = time.FixedZone("Asia/Tokyo", 9*60*60)
defer func() { time.Local = nil }()
testCases := []struct {
id string
verbose bool
Expand Down

0 comments on commit ff2b56c

Please sign in to comment.