Skip to content

Commit

Permalink
update reader coercion in client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dpatti committed Jun 3, 2021
1 parent 90de89e commit 203f06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_test/test_client_connection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let read_response t r =

let reader_ready t =
Alcotest.check read_operation "Reader is ready"
`Read (next_read_operation t :> [`Close | `Read | `Yield | `Upgrade]);
`Read (next_read_operation t :> Read_operation.t);
;;

let write_string ?(msg="output written") t str =
Expand Down Expand Up @@ -69,7 +69,7 @@ let writer_closed t =

let connection_is_shutdown t =
Alcotest.check read_operation "Reader is closed"
`Close (next_read_operation t :> [`Close | `Read | `Yield | `Upgrade]);
`Close (next_read_operation t :> Read_operation.t);
writer_closed t;
;;

Expand Down

0 comments on commit 203f06c

Please sign in to comment.