Skip to content
Open
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
4 changes: 3 additions & 1 deletion lib/propolis/src/vsock/poller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,9 @@ mod test {
accepted.read_exact(&mut buf).unwrap();
assert!(buf.iter().all(|&b| b == 0xAB));

// Look for a CREDIT_UPDATE in the RX used entries
// Look for a CREDIT_UPDATE in the RX used entries.
// NB: It arrives asynchronously so we attempt to wait on the condition.
wait_for_condition(|| harness.rx_used_idx() >= 2, 5000);
let rx_used = harness.rx_used_idx();
assert!(rx_used >= 2, "expected at least RESPONSE + CREDIT_UPDATE");

Expand Down
Loading