Skip to content

Commit 1446e3f

Browse files
fix(trogon-nats): use hardcoded 127.0.0.1 in no-Docker unreachable server test
Signed-off-by: Jorge <jramirezhdez02@gmail.com>
1 parent 3cdc314 commit 1446e3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rsworkspace/crates/trogon-nats/tests/connect_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async fn connect_to_unreachable_server_returns_ok_with_background_retry() {
191191
let port = listener.local_addr().unwrap().port();
192192
drop(listener);
193193

194-
let config = NatsConfig::new(vec![format!("nats://{host}:{port}")], NatsAuth::None);
194+
let config = NatsConfig::new(vec![format!("nats://127.0.0.1:{port}")], NatsAuth::None);
195195

196196
// connect() must return within a few seconds (INITIAL_CONNECT_CHECK_SECS + margin).
197197
let result = tokio::time::timeout(

0 commit comments

Comments
 (0)