Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions praxis/filters/src/record/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ mod tests {
for s in ["a\n", "b\n", "c\n"] {
assert_eq!(recv(&rx), s);
}
// The emitter counts a row after its write returns, so the server can get "c" first.
let deadline = Instant::now() + Duration::from_secs(2);
while e.stats().rows_emitted < 3 && Instant::now() < deadline {
std::thread::sleep(Duration::from_millis(5));
}
assert_eq!(e.stats().rows_emitted, 3);
}

Expand Down
Loading