Skip to content

Commit d6a7c8a

Browse files
fix proxy
1 parent 75ffa23 commit d6a7c8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.evergreen/run-socks5-tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ set -o errexit # Exit the script with error if any of the commands fail
66
set -o xtrace # For debuggability, no external credentials are used here
77

88
function setup_fle() {
9+
source .evergreen/setup-fle.sh
10+
911
set -o xtrace # Write all commands first to stderr
1012
set -o errexit # Exit the script with error if any of the commands fail
1113

12-
source .evergreen/setup-fle.sh
13-
1414
export CSFLE_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
1515
export CSFLE_TLS_CLIENT_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
1616
export TEST_CSFLE=true
@@ -47,7 +47,7 @@ fi
4747
"$PYTHON_BINARY" "$SOCKS5_SERVER_SCRIPT" --port 1080 --auth username:p4ssw0rd --map "127.0.0.1:12345 to $FIRST_HOST" &
4848
SOCKS5_PROXY_PID=$!
4949
if [[ $TEST_SOCKS5_CSFLE == "true" ]]; then
50-
[ "$SSL" != "nossl" ] && [[ "$OSTYPE" == "linux-gnu"* ]] &&
50+
[ "$SSL" == "nossl" ] && [[ "$OSTYPE" == "linux-gnu"* ]] &&
5151
env MONGODB_URI='mongodb://127.0.0.1:12345/?proxyHost=127.0.0.1&proxyUsername=username&proxyPassword=p4ssw0rd' \
5252
npm run check:csfle
5353
else
@@ -59,7 +59,7 @@ kill $SOCKS5_PROXY_PID
5959
"$PYTHON_BINARY" "$SOCKS5_SERVER_SCRIPT" --port 1081 --map "127.0.0.1:12345 to $FIRST_HOST" &
6060
SOCKS5_PROXY_PID=$!
6161
if [[ $TEST_SOCKS5_CSFLE == "true" ]]; then
62-
[ "$SSL" != "nossl" ] && [[ "$OSTYPE" == "linux-gnu"* ]] &&
62+
[ "$SSL" == "nossl" ] && [[ "$OSTYPE" == "linux-gnu"* ]] &&
6363
env MONGODB_URI='mongodb://127.0.0.1:12345/?proxyHost=127.0.0.1&proxyPort=1081' \
6464
npm run check:csfle
6565
else

0 commit comments

Comments
 (0)