diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-01-25 23:43:53 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-25 23:43:53 +0000 |
commit | 7694f7ec6f53a55679a50130c1b12b2735289213 (patch) | |
tree | b998a8598e069604fae72985594d90c414e9ae2e | |
parent | b35b7254e7ccf9f19092c0615fb6743d0a74a134 (diff) | |
download | pdfium-7694f7ec6f53a55679a50130c1b12b2735289213.tar.xz |
Add timeout when downloading gold json.
Short timeout for now as we don't yet rely on this json.
Change-Id: I2dcbf714c04f39b120f2ad380dbd34e2569b8b78
Reviewed-on: https://pdfium-review.googlesource.com/24010
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r-- | testing/tools/gold.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tools/gold.py b/testing/tools/gold.py index a8222378e8..89dfce1b81 100644 --- a/testing/tools/gold.py +++ b/testing/tools/gold.py @@ -68,7 +68,7 @@ class GoldBaseline(object): GOLD_BASELINE_URL = ('https://storage.googleapis.com/skia-infra-gm/' 'hash_files/gold-pdfium-baseline.json') try: - response = urllib2.urlopen(GOLD_BASELINE_URL) + response = urllib2.urlopen(GOLD_BASELINE_URL, timeout=2) json_data = response.read() except (urllib2.HTTPError, urllib2.URLError) as e: print ('Error: Unable to read skia gold json from %s: %s' |