Skip to content

Commit 48e2e63

Browse files
author
Jan Henning Thorsen
committed
Trying to fix t/telnet.t with 127.0.0.1
1 parent e6080b1 commit 48e2e63

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Mojo-IOLoop-ReadWriteFork
22

3+
0.0601
4+
* Trying to fix t/telnet.t with 127.0.0.1
5+
36
0.06 Mon Aug 11 16:59:18 2014
47
* Fix "Use of uninitialized value in numeric eq (==) at ReadWriteFork.pm line 182."
58
* Add support for write() before child process has started

t/telnet.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ use Test::Memory::Cycle;
77
$ENV{PATH} ||= '';
88
plan skip_all => 'telnet is missing' unless grep { -x "$_/telnet" } split /:/, $ENV{PATH};
99

10+
my $address = '127.0.0.1';
1011
my $port = Mojo::IOLoop::Server->generate_port;
1112

1213
# echo server
13-
Mojo::IOLoop->server({ port => $port }, sub {
14+
Mojo::IOLoop->server({ address => $address, port => $port }, sub {
1415
my ($ioloop, $stream) = @_;
1516
$stream->on(read => sub { $_[0]->write("I heard you say: $_[1]"); });
1617
});
@@ -30,7 +31,7 @@ Mojo::IOLoop->server({ port => $port }, sub {
3031

3132
$run->start(
3233
program => 'telnet',
33-
program_args => [localhost => $port],
34+
program_args => [$address => $port],
3435
conduit => 'pty',
3536
);
3637

0 commit comments

Comments
 (0)