From 5571ca08ba1417da66ce3c5626274a8a32c86a05 Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Sun, 14 Jan 2024 17:33:18 +1100 Subject: [PATCH] Make sure pathname errors return an error. --- internal/tailer/logstream/logstream_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/tailer/logstream/logstream_test.go b/internal/tailer/logstream/logstream_test.go index a4bfb8af2..80252ece8 100644 --- a/internal/tailer/logstream/logstream_test.go +++ b/internal/tailer/logstream/logstream_test.go @@ -2,6 +2,7 @@ package logstream import ( "context" + "sync" "testing" ) @@ -11,4 +12,9 @@ func TestNewErrors(t *testing.T) { if err == nil { t.Errorf("New(ctx, nil) expecting error, received nil") } + var wg sync.WaitGroup + _, err = New(ctx, &wg, nil, ":a/b", nil, false) + if err == nil { + t.Error("New(ctg, wg, ..., path) expecting error, received nil") + } }