Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (31 sloc) 0.649 kb
use strict;
use warnings;
use lib './t/lib';
use Test::More;
use Test::TCP;
use Clutch::Client;
use Worker;
test_tcp(
client => sub {
my ($port, $server_pid) = @_;
my $client = Clutch::Client->new(
servers => ['127.0.0.1:'.$port]
);
my $res;
{
$res = $client->request('cascade_root');
note $res;
is $res, 'cascaded';
}
kill 'TERM', $server_pid;
},
server => sub {
my $port = shift;
Worker->new(
{
address => '127.0.0.1:'.$port,
}
)->run();
},
);
done_testing;
Jump to Line
Something went wrong with that request. Please try again.