File: test-timeout.patch

package info (click to toggle)
tina 0.1.14-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: ansic: 1,653; sh: 1,415; python: 1,196; makefile: 42
file content (17 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Raise a test timeout for busy environments
Bug-Debian: https://bugs.debian.org/1093891
Forwarded: yes
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2025-01-28

--- a/tests/python/unit/mgr/util.py
+++ b/tests/python/unit/mgr/util.py
@@ -65,7 +65,7 @@
         assert len(line) <= x
         print("- got it")
 
-    def assert_stopped(self, *, timeout_sec: int = 2) -> None:
+    def assert_stopped(self, *, timeout_sec: int = 10) -> None:
         """Wait for the specified number of seconds for the server to go away."""
         print(f"Waiting for up to {timeout_sec} seconds for the server to go away")
         for _ in range(timeout_sec * 2):