Skip to content

Commit

Permalink
Merge pull request #35 from Phantas0s/hotfix/fix-test-fatal
Browse files Browse the repository at this point in the history
[hotfix/fix-test-fatal] Fatal can't take formatting argument, fatalf can
  • Loading branch information
radovskyb authored Apr 1, 2018
2 parents 6145e14 + 101e92a commit 1d8f9ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@ func TestFileInfo(t *testing.T) {

// Test file info methods.
if fInfo.Name() != "finfo" {
t.Fatal("expected fInfo.Name() to be 'finfo', got %s", fInfo.Name())
t.Fatalf("expected fInfo.Name() to be 'finfo', got %s", fInfo.Name())
}
if fInfo.IsDir() != true {
t.Fatal("expected fInfo.IsDir() to be true, got %t", fInfo.IsDir())
t.Fatalf("expected fInfo.IsDir() to be true, got %t", fInfo.IsDir())
}
if fInfo.Size() != 1 {
t.Fatal("expected fInfo.Size() to be 1, got %d", fInfo.Size())
t.Fatalf("expected fInfo.Size() to be 1, got %d", fInfo.Size())
}
if fInfo.Sys() != nil {
t.Fatal("expected fInfo.Sys() to be nil, got %v", fInfo.Sys())
t.Fatalf("expected fInfo.Sys() to be nil, got %v", fInfo.Sys())
}
if fInfo.ModTime() != modTime {
t.Fatal("expected fInfo.ModTime() to be %v, got %v", modTime, fInfo.ModTime())
t.Fatalf("expected fInfo.ModTime() to be %v, got %v", modTime, fInfo.ModTime())
}
if fInfo.Mode() != os.ModeDir {
t.Fatal("expected fInfo.Mode() to be os.ModeDir, got %#v", fInfo.Mode())
t.Fatalf("expected fInfo.Mode() to be os.ModeDir, got %#v", fInfo.Mode())
}

w := New()
Expand Down

0 comments on commit 1d8f9ae

Please sign in to comment.