Skip to content

Commit

Permalink
[maintenance]: make format
Browse files Browse the repository at this point in the history
Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Jan 22, 2024
1 parent c7668e2 commit 9b31ae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions ocaml/libs/xapi-rrd/lib/rrd_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ module Xmlm_utils = struct
| _ ->
raise Parse_error
in
accept `El_end i ;
d
accept `El_end i ; d
) else
raise Parse_error

Expand All @@ -136,6 +135,5 @@ module Xmlm_utils = struct
let read_block t f i =
accept (start_tag t) i ;
let res = f i in
accept `El_end i ;
res
accept `El_end i ; res
end
10 changes: 5 additions & 5 deletions ocaml/libs/xapi-rrd/lib_test/unit_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ let test_marshall rrd ~json () =
ignore
( if json then
Rrd.json_to_string rrd
else
let out = Buffer.create 2048 in
Rrd.xml_to_output rrd (Xmlm.make_output (`Buffer out)) ;
Buffer.contents out
else
let out = Buffer.create 2048 in
Rrd.xml_to_output rrd (Xmlm.make_output (`Buffer out)) ;
Buffer.contents out
)

let test_marshall_unmarshall rrd () =
Expand Down Expand Up @@ -313,7 +313,7 @@ let suite_create_multi =
)
in
let test_no_rrds () =
Alcotest.check_raises "should raise error" (No_RRA_Available) (fun () ->
Alcotest.check_raises "should raise error" No_RRA_Available (fun () ->
let _ = RU.create_multi [] 0L 1L None in
()
)
Expand Down

0 comments on commit 9b31ae5

Please sign in to comment.