Skip to content

Commit

Permalink
Use let lwt syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Ioana Cristescu  <[email protected]>
  • Loading branch information
patricoferris and Ioana Cristescu authored Jun 8, 2022
1 parent 39c6467 commit 6daceb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/irmin-test/store.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ module Make (S : Generic_key) = struct
S.Backend.Repo.close repo
in
(* Test collisions with the empty node (and its commit), *)
run x (test @@ fun () -> S.Tree.empty () |> Lwt.return) >>= fun () ->
let* () = run x (test @@ fun () -> S.Tree.empty () |> Lwt.return) in
(* with a length one node, *)
run x (test @@ fun () -> add_entries (S.Tree.empty ()) 1) >>= fun () ->
(* and with a length >256 node (which is the threshold for unstable inodes
Expand Down
3 changes: 1 addition & 2 deletions test/irmin-chunk/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ let key_t : Test_chunk.Key.t Alcotest.testable = (module Test_chunk.Key)
let value_t : Test_chunk.Value.t Alcotest.testable = (module Test_chunk.Value)

let run f () =
let open Lwt.Infix in
f () >|= fun () ->
let+ () = f () in
flush stderr;
flush stdout

Expand Down

0 comments on commit 6daceb9

Please sign in to comment.