projects
/
MojoX-Gearman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537737a
)
check echo return value
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 28 Feb 2011 17:30:03 +0000
(17:30 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 28 Feb 2011 17:30:03 +0000
(17:30 +0000)
t/gearman.t
patch
|
blob
|
history
diff --git
a/t/gearman.t
b/t/gearman.t
index
5ae8418
..
9a3c60c
100755
(executable)
--- 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";