mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-11-06 07:52:39 +08:00
stabilize test_direct_tcpip
This commit is contained in:
parent
7066dd5023
commit
38eff07628
1 changed files with 4 additions and 2 deletions
|
|
@ -142,8 +142,10 @@ class Test:
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
break
|
break
|
||||||
|
|
||||||
response = requests.get(f'http://localhost:{local_port}', timeout=timeout)
|
s = requests.Session()
|
||||||
print(response.text)
|
retries = requests.adapters.Retry(total=5, backoff_factor=1)
|
||||||
|
s.mount('http://', requests.adapters.HTTPAdapter(max_retries=retries))
|
||||||
|
response = s.get(f'http://localhost:{local_port}', timeout=timeout)
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
ssh_client.kill()
|
ssh_client.kill()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue