Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
utahta committed Dec 29, 2017
1 parent 7a73053 commit d8c8f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func TestCronoWriter_Write(t *testing.T) {
func TestCronoWriter_Path(t *testing.T) {
stubNow("2017-02-04 16:35:05 +0900")

c := MustNew(filepath.Join(tmpDir, "test.log.%Y%m%d%H%M%S"), WithInit())
jst := time.FixedZone("Asia/Tokyp", 9*60*60)
c := MustNew(filepath.Join(tmpDir, "test.log.%Y%m%d%H%M%S"), WithInit(), WithLocation(jst))
expected := filepath.Join(tmpDir, "test.log.20170204163505")
if expected != c.Path() {
t.Errorf("Expected file path %s, got %s", expected, c.Path())
Expand Down

0 comments on commit d8c8f67

Please sign in to comment.