From dbec9ecaf5dda49fedb4b83ae54463b7fcff2cd7 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sat, 21 Dec 2024 11:12:51 +0000 Subject: [PATCH] test: Longer timeout for model download --- detection/tests/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detection/tests/run.py b/detection/tests/run.py index 4c99240..f3d56d4 100755 --- a/detection/tests/run.py +++ b/detection/tests/run.py @@ -25,7 +25,7 @@ class Testing(unittest.TestCase): cmd = ['python3', 'app.py', '-l', '127.0.0.1', '-p', str(port)] p = subprocess.Popen(cmd, cwd=BASE_DIR) start = time.time() - while p.poll() == None and time.time() - start < 600: + while p.poll() == None and time.time() - start < 1200: try: url = 'http://localhost:%d' % port if 'emblem' in requests.get(url, timeout=1).text: