Skip to content

Commit 3a2c307

Browse files
committed
poll: expect kqueue without error on rw close with data
1 parent da42507 commit 3a2c307

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/standard/tests/poll/poll_stream_sock_rw_close.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ fwrite($socket1w, "test data");
1515
fclose($socket1r);
1616
pt_expect_events($poll_ctx->wait(100), [
1717
[
18-
'events' => POLL_EVENT_WRITE|POLL_EVENT_ERROR|POLL_EVENT_HUP,
18+
'events' => [
19+
'default' => POLL_EVENT_WRITE|POLL_EVENT_ERROR|POLL_EVENT_HUP,
20+
'kqueue' => POLL_EVENT_WRITE|POLL_EVENT_HUP,
21+
],
1922
'data' => 'socket2_data'
2023
]
2124
], $poll_ctx);

0 commit comments

Comments
 (0)