diff --git a/internal/watch/watch_synctest_test.go b/internal/watch/watch_synctest_test.go index ed44993..9d9e3d7 100644 --- a/internal/watch/watch_synctest_test.go +++ b/internal/watch/watch_synctest_test.go @@ -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: } @@ -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: }