Skip to content

Commit 0695f68

Browse files
committed
WIP: FollowTail: adjust test
1 parent 4424ec3 commit 0695f68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdjournal/journal_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ func TestJournalFollowTail(t *testing.T) {
131131
timeout := time.Duration(5) * time.Second
132132
ctx, cancel := context.WithTimeout(context.Background(), timeout)
133133
defer cancel()
134-
if err = r.FollowTail(entries, ctx); err != nil {
135-
t.Fatalf("Error during follow: %s", err)
136-
}
134+
r.FollowTail(entries, errCh, ctx)
137135

138136
select {
139137
case err := <-errCh:
140138
t.Fatalf("Error writing to journal: %s", err)
139+
case entry := <-entries:
140+
t.Log("received: " + entry.Cursor)
141141
default:
142142
}
143143
}

0 commit comments

Comments
 (0)