-is(epoll_wait($epfd, 100, 10000, \@events), 1, 'epoll_wait returns');
-is_deeply(\@events, [ [ fileno($w), EPOLLOUT ] ], 'got expected events');
+epoll_wait($epfd, 100, 10000, \@events);
+is(scalar(@events), 1, 'got one event');
+is($events[0], fileno($w), 'got expected FD');