Skip to content

Commit

Permalink
fix macos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jun 25, 2024
1 parent b1e0b77 commit 88effa2
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib_test/test_client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -459,26 +459,25 @@ let test_https_no_client_cert () =
(* Differences between eio_linux / eio_luv *)
()
| "Darwin" | _ ->
Alcotest.(check string)
"response error"
"tlsv13 alert certificate required"
(Option.get reason))
(match reason with
| None -> ()
| Some reason ->
Alcotest.(check string)
"response error"
"tlsv13 alert certificate required"
reason))
| Error e ->
Alcotest.fail
(Format.asprintf "expected response to be error: %a" Error.pp_hum e));

Helper_server.teardown server)
with
| Eio_ssl.Exn.Ssl_exception { reason; _ } ->
| Eio_ssl.Exn.Ssl_exception { reason = _; _ } ->
(match run "uname" with
| "Linux" ->
(* Differences between eio_linux / eio_luv *)
()
| "Darwin" | _ ->
Alcotest.(check string)
"response error"
"tlsv13 alert certificate required"
(Option.get reason)))
| "Darwin" | _ -> ()))

let test_h2c ~sw env () =
let server =
Expand Down

0 comments on commit 88effa2

Please sign in to comment.