mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-28 01:14:55 +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:
|
||||
break
|
||||
|
||||
response = requests.get(f'http://localhost:{local_port}', timeout=timeout)
|
||||
print(response.text)
|
||||
s = requests.Session()
|
||||
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
|
||||
ssh_client.kill()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue