Skip to content

Commit

Permalink
Produce slightly cleaner alcotest output
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Sep 3, 2024
1 parent 31ae318 commit 3770444
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller/tests/update_test_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ let test_combo_matrix_case case =

let module UpdateServiceI = (val update_service) in
let%lwt out_state = UpdateServiceI.run_step GettingVersionInfo in
let is_match = state_matches_expected_outcome out_state expected_outcome in
Lwt.return @@ Alcotest.(check bool)
(Format.sprintf
if state_matches_expected_outcome out_state expected_outcome then
Lwt.return ()
else
Alcotest.fail (Format.sprintf
"Reached state [%s] does not match expected outcome [%s]"
(statefmt out_state)
expected_outcome_str
)
is_match true
)


Expand Down

0 comments on commit 3770444

Please sign in to comment.