We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a818877 commit 96af352Copy full SHA for 96af352
test/test_stdio.ml
@@ -113,17 +113,11 @@ let test_select () =
113
114
Flock.terminate ();
115
116
- let expected = [| "Inn1"; "Inn2"; "Timeout" |] in
117
- let actual =
118
- (* Ignore additional timeouts *)
119
- Array.sub
120
- (Array.of_seq
121
- (Picos_mpscq.pop_all events |> Seq.drop_while (( = ) "Timeout")))
122
- 0 (Array.length expected)
123
- in
+ let events = Picos_mpscq.pop_all events in
124
125
- (* This is non-deterministic and might need to be changed if flaky *)
126
- Alcotest.(check' (array string)) ~msg:"events" ~actual ~expected
+ assert (Seq.exists (( = ) "Timeout") events);
+ assert (
+ List.of_seq (Seq.filter (( <> ) "Timeout") events) = [ "Inn1"; "Inn2" ])
127
128
let () =
129
[
0 commit comments