File tree 3 files changed +10
-24
lines changed
3 files changed +10
-24
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ jobs:
30
30
run : ulimit -a
31
31
32
32
- name : Build docker
33
- run : docker- compose -f docker/docker-compose.yml build --build-arg BASE_IMG=python:${{ matrix.python-version }} --no-cache
33
+ run : docker compose -f docker/docker-compose.yml build --build-arg BASE_IMG=python:${{ matrix.python-version }} --no-cache
34
34
35
35
- name : Run unit tests
36
- run : docker- compose -f docker/docker-compose.yml run --rm unit-test
36
+ run : docker compose -f docker/docker-compose.yml run --rm unit-test
37
37
38
38
- name : Run integration tests
39
- run : docker- compose -f docker/docker-compose.yml run --rm integration-test
39
+ run : docker compose -f docker/docker-compose.yml run --rm integration-test
40
40
41
41
- name : Generate coverage html report with dynamic contexts
42
- run : docker- compose -f docker/docker-compose.yml run --rm coverage
42
+ run : docker compose -f docker/docker-compose.yml run --rm coverage
43
43
44
44
- uses : actions/upload-artifact@v3
45
45
with :
Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ def __init__(
180
180
from fauna .http .httpx_client import HTTPXClient
181
181
c = HTTPXClient (
182
182
httpx .Client (
183
- http1 = False ,
184
- http2 = True ,
183
+ http1 = True ,
184
+ http2 = False ,
185
185
timeout = httpx .Timeout (
186
186
timeout = timeout_s ,
187
187
connect = connect_timeout_s ,
Original file line number Diff line number Diff line change @@ -73,26 +73,12 @@ def request(
73
73
raise ClientError ("Invalid URL Format" ) from e
74
74
75
75
try :
76
- return HTTPXResponse (self ._send_with_retry (3 , request ))
77
- except (httpx .HTTPError , httpx .InvalidURL ) as e :
78
- raise NetworkError ("Exception re-raised from HTTP request" ) from e
79
-
80
- def _send_with_retry (
81
- self ,
82
- retryCount : int ,
83
- request : httpx .Request ,
84
- ) -> httpx .Response :
85
- try :
86
- response = self ._c .send (
76
+ return HTTPXResponse (self ._c .send (
87
77
request ,
88
78
stream = False ,
89
- )
90
- return response
91
- except httpx .TransportError as e :
92
- if retryCount == 0 :
93
- raise e
94
- else :
95
- return self ._send_with_retry (retryCount - 1 , request )
79
+ ))
80
+ except (httpx .HTTPError , httpx .InvalidURL ) as e :
81
+ raise NetworkError ("Exception re-raised from HTTP request" ) from e
96
82
97
83
@contextmanager
98
84
def stream (
You can’t perform that action at this time.
0 commit comments