Skip to content

Commit

Permalink
fix integrate test issue and stop auto run it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Jul 11, 2023
1 parent c2f81df commit d7fb13b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: lint_python
on:
pull_request:
push:
# branches: [master]
branches: [test]
jobs:
testing_linux:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions code/default/launcher/tests/integrate_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ def xtunnel_token_login(self):
def xtunnel_proxy_http(self):
xlog.info("Start testing XTunnel HTTP proxy protocol")
if not self.xtunnel_login_status:
self.xtunnel_login()
self.xtunnel_token_login()
proxy = "http://localhost:1080"
for _ in range(3):
res = simple_http_client.request("GET", "https://github.com/", proxy=proxy, timeout=30)
if not res:
time.sleep(5)
continue
self.assertEqual(res.status, 200)
xlog.info("Finished testing XTunnel HTTP proxy protocol")
Expand All @@ -207,7 +208,7 @@ def xtunnel_proxy_http(self):
def xtunnel_proxy_socks4(self):
xlog.info("Start testing XTunnel Socks4 proxy protocol")
if not self.xtunnel_login_status:
self.xtunnel_login()
self.xtunnel_token_login()
proxy = "socks4://localhost:1080"
res = simple_http_client.request("GET", "https://github.com/", proxy=proxy, timeout=15)
self.assertEqual(res.status, 200)
Expand All @@ -216,7 +217,7 @@ def xtunnel_proxy_socks4(self):
def xtunnel_proxy_socks5(self):
xlog.info("Start testing XTunnel Socks5 proxy protocol")
if not self.xtunnel_login_status:
self.xtunnel_login()
self.xtunnel_token_login()
proxy = "socks5://localhost:1080"
res = simple_http_client.request("GET", "https://github.com/", proxy=proxy, timeout=15)
self.assertEqual(res.status, 200)
Expand Down

0 comments on commit d7fb13b

Please sign in to comment.