| |
@@ -0,0 +1,46 @@
|
| |
+ From 02bd08c27f71f108a8beb9d50ef34c79aa5d70f3 Mon Sep 17 00:00:00 2001
|
| |
+ From: Vadim Rutkovsky <vrutkovs@redhat.com>
|
| |
+ Date: Wed, 8 Nov 2017 13:26:45 +0100
|
| |
+ Subject: [PATCH] tests: don't enable retries when checking if connection is
|
| |
+ available
|
| |
+
|
| |
+ ---
|
| |
+ tests/test_http.py | 4 ++--
|
| |
+ tests/test_retries.py | 4 ++--
|
| |
+ 2 files changed, 4 insertions(+), 4 deletions(-)
|
| |
+
|
| |
+ diff --git a/tests/test_http.py b/tests/test_http.py
|
| |
+ index 0df7af3..c1eeb17 100644
|
| |
+ --- a/tests/test_http.py
|
| |
+ +++ b/tests/test_http.py
|
| |
+ @@ -33,9 +33,9 @@ def has_connection():
|
| |
+ return False
|
| |
+
|
| |
+ try:
|
| |
+ - HttpStream("https://httpbin.org/get", "get")
|
| |
+ + HttpStream("https://httpbin.org/get", "get", retries_enabled=False)
|
| |
+ return True
|
| |
+ - except OsbsNetworkException:
|
| |
+ + except (OsbsNetworkException, requests.exceptions.ConnectionError):
|
| |
+ return False
|
| |
+
|
| |
+
|
| |
+ diff --git a/tests/test_retries.py b/tests/test_retries.py
|
| |
+ index a6ba981..31ce567 100644
|
| |
+ --- a/tests/test_retries.py
|
| |
+ +++ b/tests/test_retries.py
|
| |
+ @@ -38,9 +38,9 @@ def has_connection():
|
| |
+ return False
|
| |
+
|
| |
+ try:
|
| |
+ - HttpStream("https://httpbin.org/get", "get")
|
| |
+ + HttpStream("https://httpbin.org/get", "get", retries_enabled=False)
|
| |
+ return True
|
| |
+ - except OsbsNetworkException:
|
| |
+ + except (OsbsNetworkException, requests.exceptions.ConnectionError):
|
| |
+ return False
|
| |
+
|
| |
+
|
| |
+ --
|
| |
+ 2.14.3
|
| |
+
|
| |
Test build: https://koji.fedoraproject.org/koji/taskinfo?taskID=22993054