Skip to content

Commit

Permalink
fix journal test: do not rely on version specific behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed May 2, 2024
1 parent 96dddb6 commit d3bee7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ fn test_seek() {
assert_eq!(c1, c2);

j.seek(journal::JournalSeek::Tail).unwrap();
assert!(j.next_entry().unwrap().is_none());
// NOTE: depending on the libsystemd version we may or may not be able to read an entry
// following the "Tail", so ignore it.
j.next_entry().unwrap();

let valid_cursor = journal::JournalSeek::Cursor { cursor: c1 };
j.seek(valid_cursor).unwrap();
Expand Down

0 comments on commit d3bee7d

Please sign in to comment.