We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4424ec3 commit 0695f68Copy full SHA for 0695f68
sdjournal/journal_test.go
@@ -131,13 +131,13 @@ func TestJournalFollowTail(t *testing.T) {
131
timeout := time.Duration(5) * time.Second
132
ctx, cancel := context.WithTimeout(context.Background(), timeout)
133
defer cancel()
134
- if err = r.FollowTail(entries, ctx); err != nil {
135
- t.Fatalf("Error during follow: %s", err)
136
- }
+ r.FollowTail(entries, errCh, ctx)
137
138
select {
139
case err := <-errCh:
140
t.Fatalf("Error writing to journal: %s", err)
+ case entry := <-entries:
+ t.Log("received: " + entry.Cursor)
141
default:
142
}
143
0 commit comments