Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#234] t.Fatalf -> t.Errorf in go routines #266

Merged
merged 2 commits into from Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration_darwin_test.go
Expand Up @@ -55,7 +55,7 @@ func testExchangedataForWatcher(t *testing.T, watchDir bool) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down
16 changes: 8 additions & 8 deletions integration_test.go
Expand Up @@ -194,7 +194,7 @@ func TestFsnotifyMultipleCreates(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -339,7 +339,7 @@ func TestFsnotifyDirOnly(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -444,7 +444,7 @@ func TestFsnotifyDeleteWatchedDir(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -489,7 +489,7 @@ func TestFsnotifySubDir(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -581,7 +581,7 @@ func TestFsnotifyRename(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -663,7 +663,7 @@ func TestFsnotifyRenameToCreate(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -756,7 +756,7 @@ func TestFsnotifyRenameToOverwrite(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down Expand Up @@ -874,7 +874,7 @@ func TestFsnotifyAttrib(t *testing.T) {
// Receive errors on the error channel on a separate goroutine
go func() {
for err := range watcher.Errors {
t.Fatalf("error received: %s", err)
t.Errorf("error received: %s", err)
}
}()

Expand Down