4 require 't/logsetup.pl';
7 use Object::Remote::Connector::Local;
9 my $connector = Object::Remote::Connector::Local->new(
10 timeout => { after => 0.1 },
11 perl_command => [ 'perl', '-e', 'sleep 3' ],
14 ok(!eval { $connector->connect; 1 }, 'Connection failed');
16 like($@, qr{timed out}, 'Connection failed with time out');