removed process groups from the connection class child cleanup logic
[scpubgit/Object-Remote.git] / t / timeout.t
CommitLineData
49e9ae37 1use strictures 1;
2use Test::More;
3
abef6e5b 4$ENV{OBJECT_REMOTE_TEST_LOGGER} = 1;
f129bfaf 5
49e9ae37 6use Object::Remote;
7use Object::Remote::Connector::Local;
8
9my $connector = Object::Remote::Connector::Local->new(
e1a0b9ca 10 timeout => 0.1,
49e9ae37 11 perl_command => [ 'perl', '-e', 'sleep 3' ],
12);
13
14ok(!eval { $connector->connect; 1 }, 'Connection failed');
15
16like($@, qr{timed out}, 'Connection failed with time out');
17
18done_testing;