From c4ca180fd7c2085e3ce3f8e32aa0c2cb724f4c53 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 20 Nov 2026 12:35:08 +0100 Subject: Reviewed tests --- test/schema.ml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/schema.ml') diff --git a/test/schema.ml b/test/schema.ml index 3b52812..5fcd406 100644 --- a/test/schema.ml +++ b/test/schema.ml @@ -25,8 +25,7 @@ let get_schema : Caqti_lwt.connection -> string -> string Lwt.t = let exec : string list -> t = fun tables -> - let stdin = In_channel.input_all stdin in + let stdin = Common.read_stdin () in let+ configuration = Configuration.Read_conf.read_string_conf stdin in - Lwt_main.run - (let* db = Common.connect configuration in - Lwt_list.map_s (get_schema db) (List.rev tables)) + Common.with_db configuration (fun db -> + Lwt_list.map_s (get_schema db) (List.rev tables)) -- cgit v1.2.3