Skip to content

Commit a54e36c

Browse files
committed
fix(network): use nodelay helper in Windows host proxy test
Signed-off-by: Taylor Mutch <[email protected]>
1 parent 92794df commit a54e36c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • crates/openshell-supervisor-network/src

‎crates/openshell-supervisor-network/src/host.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ mod tests {
245245
MiddlewareEndpointSelector, NetworkMiddlewareConfig, SandboxPolicy as ProtoSandboxPolicy,
246246
};
247247
use tokio::io::{AsyncReadExt, AsyncWriteExt};
248-
use tokio::net::TcpStream;
249248

250249
use super::*;
251250

@@ -345,7 +344,9 @@ mod tests {
345344
.contains("BEGIN CERTIFICATE")
346345
);
347346

348-
let mut client = TcpStream::connect(addr).await.unwrap();
347+
let mut client = openshell_core::net::connect_tcp_nodelay_best_effort(addr)
348+
.await
349+
.unwrap();
349350
client
350351
.write_all(
351352
b"GET http://policy.local/v1/policy/current HTTP/1.1\r\n\

0 commit comments

Comments
 (0)