Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] support/testing/tests/package/test_python_flask*: increase time after server startup
@ 2022-11-01 18:13 Thomas Petazzoni via buildroot
  2022-11-01 18:13 ` [Buildroot] [PATCH 2/3] support/testing/tests/package/test_python_crossbar: use ext2 instead of cpio Thomas Petazzoni via buildroot
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-01 18:13 UTC (permalink / raw)
  To: buildroot; +Cc: Lionel Flandrin, Thomas Petazzoni

It seems like on Gitlab CI, the runners are quite slow, and the Flask
server does not startup in the 15 seconds we give it. So increase this
to 30 seconds before trying to contact the Flask server.

Hopefully fixes:

  https://gitlab.com/buildroot.org/buildroot/-/jobs/3249828594

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 support/testing/tests/package/test_python_flask.py              | 2 +-
 support/testing/tests/package/test_python_flask_expects_json.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/testing/tests/package/test_python_flask.py b/support/testing/tests/package/test_python_flask.py
index ef5d96bae9..9d8587e918 100644
--- a/support/testing/tests/package/test_python_flask.py
+++ b/support/testing/tests/package/test_python_flask.py
@@ -21,7 +21,7 @@ class TestPythonPy3Flask(TestPythonPackageBase):
         _, exit_code = self.emulator.run(cmd, timeout=self.timeout)
 
         # Give enough time for the flask server to start up
-        time.sleep(15)
+        time.sleep(30)
 
         cmd = "wget -q -O - http://127.0.0.1:5000/"
         output, exit_code = self.emulator.run(cmd, timeout=self.timeout)
diff --git a/support/testing/tests/package/test_python_flask_expects_json.py b/support/testing/tests/package/test_python_flask_expects_json.py
index 5576cba2b4..91b8bf21b7 100644
--- a/support/testing/tests/package/test_python_flask_expects_json.py
+++ b/support/testing/tests/package/test_python_flask_expects_json.py
@@ -31,7 +31,7 @@ class TestPythonPy3FlaskExpectsJson(TestPythonPackageBase):
         _, exit_code = self.emulator.run(cmd, timeout=self.timeout)
 
         # Give enough time for the flask server to start up
-        time.sleep(15)
+        time.sleep(30)
 
         self.try_json("""{"email": "test", "name": "test"}""", 200)
         self.try_json("""{"email": "test", "name": 2}""", 400)
-- 
2.37.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-14 10:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-01 18:13 [Buildroot] [PATCH 1/3] support/testing/tests/package/test_python_flask*: increase time after server startup Thomas Petazzoni via buildroot
2022-11-01 18:13 ` [Buildroot] [PATCH 2/3] support/testing/tests/package/test_python_crossbar: use ext2 instead of cpio Thomas Petazzoni via buildroot
2022-11-14 10:22   ` Peter Korsgaard
2022-11-01 18:13 ` [Buildroot] [PATCH 3/3] support/testing/tests/package/test_gdb.py: drop version-specific tests Thomas Petazzoni via buildroot
2022-11-03 22:08 ` [Buildroot] [PATCH 1/3] support/testing/tests/package/test_python_flask*: increase time after server startup Thomas Petazzoni via buildroot
2022-11-14 10:22 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox