Increase timeout in tests to cope with slowness of riscv64
authorStephane Glondu <steph@glondu.net>
Mon, 16 Mar 2026 07:11:31 +0000 (08:11 +0100)
committerStephane Glondu <steph@glondu.net>
Mon, 16 Mar 2026 07:11:31 +0000 (08:11 +0100)
debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch b/debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch
new file mode 100644 (file)
index 0000000..160436a
--- /dev/null
@@ -0,0 +1,21 @@
+From: Stephane Glondu <steph@glondu.net>
+Date: Mon, 16 Mar 2026 08:11:08 +0100
+Subject: Increase timeout in tests to cope with slowness of riscv64
+
+---
+ cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml b/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml
+index d399ea1..36c59fe 100644
+--- a/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml
++++ b/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml
+@@ -40,7 +40,7 @@ let temp_server ?port spec callback =
+             Lwt.wakeup_exn server_failed_wake exn;
+             Lwt.reraise exn)
+   in
+-  Lwt.pick [ Lwt_unix.with_timeout 5.0 (fun () -> callback uri); server_failed ]
++  Lwt.pick [ Lwt_unix.with_timeout 10.0 (fun () -> callback uri); server_failed ]
+   >|= fun res ->
+   Lwt.cancel server;
+   res
index d3328ade5bbf0304b158138849315ab5045af3ce..df8d6185eb6bcdf3e6eafc1482c3a54035f7da83 100644 (file)
@@ -1 +1,2 @@
 0001-Disable-test-that-needs-base_quickcheck.patch
+0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch