Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 17, 2017
1 parent c484db7 commit 19fc9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions travis/test-new-project
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ import subprocess
initial_error_length = 0
initial_access_length = 0

curl_args = ["--connect-timeout", "1", "--max-time", "400", "--retry", "1"]
curl_args = ["--connect-timeout=1", "--max-time=400", "--retry=1"]

url = sys.argv[1]

try:
status_code = subprocess.check_output(
["curl", "--write-out", "%{http_code}"] + curl_args + ["--silent", "--output", "/dev/null", url]
["curl", "--write-out=%{http_code}"] + curl_args + ["--silent", "--output=/dev/null", url]
).decode("utf-8")
except subprocess.CalledProcessError as e:
print("Exception on curl call: {}".format(e))
Expand Down

0 comments on commit 19fc9c4

Please sign in to comment.