From dd80e29484ec7fbf2a40ef8c27e13d73c66047f7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 06:27:18 +0200 Subject: [PATCH] Hosted lane: test call sites take the endpoint enum (WIP, unverified) Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/local_inference.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ghostlight/src/local_inference.rs b/crates/ghostlight/src/local_inference.rs index e037937..d88f00f 100644 --- a/crates/ghostlight/src/local_inference.rs +++ b/crates/ghostlight/src/local_inference.rs @@ -961,14 +961,14 @@ mod tests { .lock() .expect("the client-build lock is never poisoned"); LocalInferencePort::new( - "[::1]:1".parse().unwrap(), + Endpoint::Loopback("[::1]:1".parse().unwrap()), DEFAULT_LOCAL_MODEL_PREFIX, TEST_RUNTIME, ) .expect("the IPv6 loopback address opens"); let error = LocalInferencePort::new( - "[2001:db8::1]:8080".parse().unwrap(), + Endpoint::Loopback("[2001:db8::1]:8080".parse().unwrap()), DEFAULT_LOCAL_MODEL_PREFIX, TEST_RUNTIME, ) @@ -1167,7 +1167,7 @@ mod tests { std::env::set_var("HTTP_PROXY", &proxy_url); std::env::set_var("http_proxy", &proxy_url); } - let built = LocalInferencePort::new(target.endpoint(), DEFAULT_LOCAL_MODEL_PREFIX, TEST_RUNTIME); + let built = LocalInferencePort::new(Endpoint::Loopback(target.endpoint()), DEFAULT_LOCAL_MODEL_PREFIX, TEST_RUNTIME); unsafe { std::env::remove_var("HTTP_PROXY"); std::env::remove_var("http_proxy"); @@ -1685,7 +1685,7 @@ mod tests { let port = { let _guard = client_build_lock().lock().expect("the client-build lock is never poisoned"); LocalInferencePort::with_timeout( - addr, + Endpoint::Loopback(addr), DEFAULT_LOCAL_MODEL_PREFIX, TEST_RUNTIME, std::time::Duration::from_millis(150),