X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=b8fee8e9cd8c12e3acb43f01771715036c7440a0;hb=09f583a745c0bfefad33d22faefcf8dc4335a934;hp=0289dc0708d660245199b4af6ac82a0446176c98;hpb=4c17fea55a562db315a029e6bd67b7dbb028a8e9;p=scpubgit%2FObject-Remote.git diff --git a/t/basic.t b/t/basic.t index 0289dc0..b8fee8e 100644 --- a/t/basic.t +++ b/t/basic.t @@ -2,6 +2,8 @@ use strictures 1; use Test::More; use Sys::Hostname qw(hostname); +require 't/logsetup.pl'; + use Object::Remote; $ENV{PERL5LIB} = join( @@ -29,7 +31,7 @@ is($remote->call_callback(27, sub { $x++ }), 27, "Callback ok"); is($x, 1, "Callback called callback"); is( - $connection->get_remote_sub('Sys::Hostname::hostname')->(), + Sys::Hostname->can::on($connection, 'hostname')->(), hostname(), 'Remote sub call ok' );