Skip to content

Commit

Permalink
WIP: FollowTail: adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
nexoscp committed Aug 25, 2022
1 parent 4424ec3 commit 0695f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdjournal/journal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ func TestJournalFollowTail(t *testing.T) {
timeout := time.Duration(5) * time.Second
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
if err = r.FollowTail(entries, ctx); err != nil {
t.Fatalf("Error during follow: %s", err)
}
r.FollowTail(entries, errCh, ctx)

select {
case err := <-errCh:
t.Fatalf("Error writing to journal: %s", err)
case entry := <-entries:
t.Log("received: " + entry.Cursor)
default:
}
}
Expand Down

0 comments on commit 0695f68

Please sign in to comment.