Skip to content
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions packages/runtime-core/src/provider/host_endpoint/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ fn accepted_stream_preserves_payload_and_half_close() {
peer.write_all(b"reply").unwrap();
});
let mut stream = endpoint.connect(Duration::from_secs(2)).unwrap();
stream.write_all(b"synthetic endpoint payload").unwrap();
stream.shutdown(std::net::Shutdown::Write).unwrap();
stream
.set_read_timeout(Some(Duration::from_secs(2)))
.unwrap();
stream.write_all(b"synthetic endpoint payload").unwrap();
stream.shutdown(std::net::Shutdown::Write).unwrap();
let mut response = String::new();
stream.read_to_string(&mut response).unwrap();
assert_eq!(response, "reply");
Expand Down
3 changes: 2 additions & 1 deletion packages/runtime-core/src/provider/relay_owner/managed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2361,8 +2361,9 @@ mod tests {
.unwrap();
let canceled = Arc::clone(&retry.0.canceled);
drop(retry);
assert!(canceled.load(Ordering::Acquire));
// The reactor may still hold the command clone after delivering its reply.
fixture.owner.verify_alive().unwrap();
assert!(canceled.load(Ordering::Acquire));
assert!(authenticate(&fixture.sockets[0], &fresh.credential).is_err());
assert!(
fixture
Expand Down
Loading