X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=t%2Fsender.t;h=cd9c68191fd25383460912cb4ce75e921b2799f0;hp=02eb0d8cc29ec21acf649f08da78dfec5f984061;hb=1627df4e8bb3ce08bca9d27fd58a4af1e59acfc5;hpb=676438a11cbf6bd49102369824c9d87f70964fd3 diff --git a/t/sender.t b/t/sender.t index 02eb0d8..cd9c681 100644 --- a/t/sender.t +++ b/t/sender.t @@ -1,6 +1,8 @@ use strictures 1; use Test::More; +require 't/logsetup.pl'; + use Object::Remote::Connector::Local; use Object::Remote; use Object::Remote::ModuleSender; @@ -9,17 +11,13 @@ $ENV{PERL5LIB} = join( ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib) ); -my $connection = Object::Remote::Connector::Local->new->connect; - my $ms = Object::Remote::ModuleSender->new( dir_list => [ 't/lib' ] ); -my $ml = Object::Remote->new( - connection => $connection, - class => 'Object::Remote::ModuleLoader', - args => { module_sender => $ms }, -); +my $connection = Object::Remote::Connector::Local->new( + module_sender => $ms, + )->connect; my $counter = Object::Remote->new( connection => $connection,