sync SUBMIT_JOB somewhat working
[MojoX-Gearman.git] / t / gearman.t
index 9a3c60c..0e2676f 100755 (executable)
@@ -2,12 +2,17 @@
 use warnings;
 use strict;
 
-use Test::More tests => 4;
+use Test::More tests => 5;
+use Data::Dump qw(dump);
 use lib 'lib';
 
 use_ok 'MojoX::Gearman';
 
 my $g = new_ok 'MojoX::Gearman';
 
-ok( my $echo = $g->req( 16, "foobar" ), 'echo' );
+ok( my $echo = $g->req( 16, "foobar" ), 'ECHO' );
 cmp_ok $echo, 'eq', "foobar";
+
+ok( my $ping = $g->req( 7, 'ping', '', 'bla' ), 'SUBMIT_JOB' );
+diag dump $ping;
+