Skip to content

Commit 1921fef

Browse files
localhost
1 parent e135fa9 commit 1921fef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.evergreen/run-socks5-proxy-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ FEATURE_FLAGS+=("socks5-proxy")
99
CARGO_OPTIONS+=("--ignore-default-filter")
1010

1111
# with auth
12-
python $DRIVERS_TOOLS/.evergreen/socks5srv.py --map "127.0.0.1:12345 to 127.0.0.1:27017" --port 1080 --auth username:p4ssw0rd &
12+
python $DRIVERS_TOOLS/.evergreen/socks5srv.py --map "localhost:12345 to localhost:27017" --port 1080 --auth username:p4ssw0rd &
1313
AUTH_PID=$!
1414
# without auth
15-
python $DRIVERS_TOOLS/.evergreen/socks5srv.py --map "127.0.0.1:12345 to 127.0.0.1:27017" --port 1081 &
15+
python $DRIVERS_TOOLS/.evergreen/socks5srv.py --map "localhost:12345 to localhost:27017" --port 1081 &
1616
NOAUTH_PID=$!
1717

1818
echo "testing socks5proxy with URI $MONGODB_URI"

src/test/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ fn server_address_from_socket_addr_ipv6() {
10231023

10241024
#[tokio::test]
10251025
#[cfg(feature = "socks5-proxy")]
1026-
async fn socks5_proxy_skip_ci() {
1026+
async fn socks5_proxy() {
10271027
use crate::{
10281028
error::Result,
10291029
options::{ClientOptions, Tls},
@@ -1038,7 +1038,7 @@ async fn socks5_proxy_skip_ci() {
10381038
}
10391039

10401040
let options = get_client_options().await;
1041-
let mapped_host = options.hosts.first().cloned().unwrap();
1041+
let mapped_host = "localhost:12345";
10421042
let all_hosts = options
10431043
.hosts
10441044
.iter()

0 commit comments

Comments
 (0)