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:
b6a43b7
)
test ping response
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 1 Mar 2011 19:18:08 +0000
(19:18 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 1 Mar 2011 19:18:08 +0000
(19:18 +0000)
t/gearman.t
patch
|
blob
|
history
diff --git
a/t/gearman.t
b/t/gearman.t
index
694815f
..
4df77c5
100755
(executable)
--- a/
t/gearman.t
+++ b/
t/gearman.t
@@
-2,7
+2,7
@@
use warnings;
use strict;
-use Test::More tests =>
6
;
+use Test::More tests =>
7
;
use Data::Dump qw(dump);
use lib 'lib';
@@
-14,6
+14,7
@@
ok( my $echo = $g->req( 'ECHO_REQ', "foobar" ), 'ECHO' );
cmp_ok $echo, 'eq', "foobar";
ok( my $ping = $g->req( 'SUBMIT_JOB', 'ping', '', 'bla' ), 'SUBMIT_JOB' );
+like $ping, qr/pong/, 'got pong';
diag dump $ping;
ok( $g->req( 'ECHO_REQ', "alive" ), 'ECHO - still alive - still alive?' );