Skip to content

Commit

Permalink
retry: reduce test time (less sleep)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-proust authored Nov 4, 2024
1 parent 13ddb6f commit 61697da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/retry/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ let suite = suite "lwt_retry" [

(* test that the sleeps actually throttle computations as desired *)
test "with_sleep really does sleep" (fun () ->
let duration _ = 0.1 in
let duration _ = 0.01 in
let operation () = Lwt.return_error (`Retry ()) in
(* If [with_sleep] is removed the test fails, as expected *)
let retries = Retry.(operation |> on_error |> with_sleep ~duration |> n_times 5) in
Expand Down

0 comments on commit 61697da

Please sign in to comment.