Skip to content

Commit

Permalink
Make sure pathname errors return an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Jan 14, 2024
1 parent 92c03d0 commit 5571ca0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/tailer/logstream/logstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package logstream

import (
"context"
"sync"
"testing"
)

Expand All @@ -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")
}
}

0 comments on commit 5571ca0

Please sign in to comment.