From 6aac68cd028dd87888392717a37b6e9911d68a10 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 28 Feb 2011 17:30:03 +0000 Subject: [PATCH] check echo return value --- t/gearman.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/gearman.t b/t/gearman.t index 5ae8418..9a3c60c 100755 --- a/t/gearman.t +++ b/t/gearman.t @@ -2,11 +2,12 @@ use warnings; use strict; -use Test::More tests => 3; +use Test::More tests => 4; use lib 'lib'; use_ok 'MojoX::Gearman'; my $g = new_ok 'MojoX::Gearman'; -ok( $g->req( 16, "foobar" ), 'echo' ); +ok( my $echo = $g->req( 16, "foobar" ), 'echo' ); +cmp_ok $echo, 'eq', "foobar"; -- 2.20.1