Skip to content

Commit

Permalink
Remove the sketchy t.Fatal calls under synctest
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamlinman committed Feb 19, 2025
1 parent b31644b commit 8ee8b93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/watch/watch_synctest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ func TestWaitSynctest(t *testing.T) {
synctest.Wait()
select {
case <-done:
t.Fatal("watcher finished waiting before cancellation") // Sketchy; not in the test goroutine
t.Error("watcher finished waiting before cancellation")
return
default:
}

Expand All @@ -76,7 +77,8 @@ func TestWaitSynctest(t *testing.T) {
synctest.Wait()
select {
case <-done:
t.Fatal("watcher finished waiting before handler exit") // Sketchy; not in the test goroutine
t.Error("watcher finished waiting before handler exit")
return
default:
}

Expand Down

0 comments on commit 8ee8b93

Please sign in to comment.