diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-25 21:51:33 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-25 21:51:33 -0300 |
| commit | 584fbca6d920e9a9f91d451667f9380714ac2175 (patch) | |
| tree | a163b916a6f8cb550c8b38ceb01ab01558687a40 /test/Helpers.ml | |
| parent | c7b754e96714eeeb9d315ee3de402d73a27d47db (diff) | |
| download | RNT-584fbca6d920e9a9f91d451667f9380714ac2175.tar.gz RNT-584fbca6d920e9a9f91d451667f9380714ac2175.zip | |
dune fmt
Diffstat (limited to '')
| -rw-r--r-- | test/Helpers.ml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/Helpers.ml b/test/Helpers.ml index e859932..42cf8a5 100644 --- a/test/Helpers.ml +++ b/test/Helpers.ml @@ -34,17 +34,17 @@ module Storage = struct module SI = Kernel.Storage.Make (S) let store_schema tx attributes = - Concepts.Encoding.Bencode.(Dict (List.map (fun a -> (a, String "string")) attributes) |> to_blob) + Concepts.Encoding.Bencode.(Dict (List.map (fun a -> a, String "string") attributes) |> to_blob) |> SI.store_blob tx let with_connection f dir () = with_temporary_directory dir begin fun dir -> - begin - let open Utilities.Result in - let* conn = S.connect (C.configure dir) in - Ok (Fun.protect ~finally:(fun () -> S.disconnect conn) (fun () -> f conn)) - end - |> condition_as_failure + begin + let open Utilities.Result in + let* conn = S.connect (C.configure dir) in + Ok (Fun.protect ~finally:(fun () -> S.disconnect conn) (fun () -> f conn)) + end + |> condition_as_failure end end end |
