make note about deadlock when moving position of timer execution
[scpubgit/Object-Remote.git] / t / sender.t
index 02eb0d8..6d50e50 100644 (file)
@@ -1,6 +1,8 @@
 use strictures 1;
 use Test::More;
 
+$ENV{OBJECT_REMOTE_TEST_LOGGER} = 1;
+
 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,