Skip to content

Commit

Permalink
Test directly looks to see if a I:S:A.listen returns a usable Tap
Browse files Browse the repository at this point in the history
This is an improved test for:
      rakudo/rakudo#2411
  • Loading branch information
jmaslak committed Nov 5, 2018
1 parent 6113860 commit 122e67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S32-io/IO-Socket-Async.t
Expand Up @@ -298,8 +298,8 @@ for '127.0.0.1', '::1' -> $host {
my $listen-socket = IO::Socket::Async.listen("127.0.0.1", 0);
react {
my $listen-tap = do whenever $listen-socket -> $socket { … }
lives-ok { await $listen-tap.socket-port }, "can await on socket-port";
ok $listen-tap.socket-port.result > 0, "port looks reasonable";
ok $listen-tap.defined, "listen tap is defined";
isa-ok $listen-tap, Tap, "listen tap is a Tap";
done;
}
}
Expand Down

0 comments on commit 122e67e

Please sign in to comment.