From: Stephane Glondu Date: Mon, 16 Mar 2026 07:11:31 +0000 (+0100) Subject: Increase timeout in tests to cope with slowness of riscv64 X-Git-Tag: archive/raspbian/6.2.2-1+rpi1~1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=314bf97310ed4fc2ef965ca40c407f566d88d41d;p=ocaml-cohttp.git Increase timeout in tests to cope with slowness of riscv64 --- 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 index 0000000..160436a --- /dev/null +++ b/debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch @@ -0,0 +1,21 @@ +From: Stephane Glondu +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 diff --git a/debian/patches/series b/debian/patches/series index d3328ad..df8d618 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Disable-test-that-needs-base_quickcheck.patch +0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch