diff options
author | Steven Grimm <koreth@gmail.com> | 2014-01-31 21:18:39 -0800 |
---|---|---|
committer | Steven Grimm <koreth@gmail.com> | 2014-02-16 16:21:43 -0800 |
commit | ae7fb53706fc26da3753613eaec45bc8a74dbfe4 (patch) | |
tree | 5a9018b6c07610a8f5d3568c60e7e5a51c8bd004 /t/stats-conns.t | |
parent | 5a07614f542426daac58536fad252b6fabf2138e (diff) | |
download | memcached-ae7fb53706fc26da3753613eaec45bc8a74dbfe4.tar.gz |
Factor out string representation of conn
Diffstat (limited to 't/stats-conns.t')
-rwxr-xr-x | t/stats-conns.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/stats-conns.t b/t/stats-conns.t index 8c617fd..b864358 100755 --- a/t/stats-conns.t +++ b/t/stats-conns.t @@ -27,7 +27,7 @@ while (<$stats_sock>) { } like($stats, qr/STAT \d+:addr /); -$stats =~ m/STAT (\d+):addr (\/[^\r\n]*)/g; +$stats =~ m/STAT (\d+):addr unix:(\/[^\r\n]*)/g; my $listen_fd = $1; is($2, $filename, "unix domain socket path reported correctly"); $stats =~ m/STAT (\d+):state conn_listening\r\n/g; @@ -59,7 +59,7 @@ while (<$stats_sock>) { } like($stats, qr/STAT \d+:state conn_listen/, "there is a listen socket"); -$stats =~ m/STAT \d+:addr 0.0.0.0:(\d+) udp/; +$stats =~ m/STAT \d+:addr udp:0.0.0.0:(\d+)/; is($1, $server->udpport, "udp port number is correct"); -$stats =~ m/STAT \d+:addr 0.0.0.0:(\d+) tcp/; +$stats =~ m/STAT \d+:addr tcp:0.0.0.0:(\d+)/; is($1, $server->port, "tcp port number is correct"); |