Skip to content

Commit

Permalink
fix(tests/net): fix style for net tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Oct 31, 2023
1 parent b03f854 commit 1c567c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ TRY="$TRY_TOP/try"
# Test if curl fails when network is unshared
# curl exit code 7 means Failed to connect to host.
"$TRY" -x curl 1.1
if [ $? -eq 7 ]; then
return 0;
if [ $? -eq 7 ]
then
return 0
else
return 1;
return 1
fi

0 comments on commit 1c567c5

Please sign in to comment.