cultmesh-rs tests: let the scripted peer take its stall before the client closes
Some checks failed
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Has been cancelled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 09:11:04 +01:00
commit b9b2a3a64f

View file

@ -1121,6 +1121,7 @@ fn close_waits_for_the_acknowledgement_and_says_when_it_does_not_come() {
client.subscribe("sub-1", vector_selection()).unwrap();
peer.subscribe_id();
peer.stall(); // reads nothing, acknowledges nothing
thread::sleep(Duration::from_millis(100)); // the peer thread has taken the stall before the client closes
let started = Instant::now();
assert!(!client.close(), "no acknowledgement came");
let waited = started.elapsed();
@ -1135,6 +1136,7 @@ fn drop_does_not_wait_for_a_peer_that_acknowledges_nothing() {
client.subscribe("sub-1", vector_selection()).unwrap();
peer.subscribe_id();
peer.stall();
thread::sleep(Duration::from_millis(100));
let pump = client.pump_liveness();
let started = Instant::now();
drop(client);