X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=b8fee8e9cd8c12e3acb43f01771715036c7440a0;hb=09f583a745c0bfefad33d22faefcf8dc4335a934;hp=b5a83b7f6d6246dce10df358ccc9099f44a6a482;hpb=11dbd4a02cce95ee689233d2b1d2392470518732;p=scpubgit%2FObject-Remote.git diff --git a/t/basic.t b/t/basic.t index b5a83b7..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->remote_sub('Sys::Hostname::hostname')->(), + Sys::Hostname->can::on($connection, 'hostname')->(), hostname(), 'Remote sub call ok' );