Browse files

fixed tests.

  • Loading branch information...
1 parent 12269a8 commit 9698c53e14171f063852002eabaa65505078b0f8 @nekokak committed Jan 25, 2011
Showing with 7 additions and 0 deletions.
  1. +3 −0 t/multi_process.t
  2. +4 −0 t/worker.t
View
3 t/multi_process.t
@@ -21,6 +21,8 @@ my $dbh = t::Utils->setup;
is $job->arg, 'arg1';
wait;
+
+ $job->completed;
}
else {
# child
@@ -32,6 +34,7 @@ my $dbh = t::Utils->setup;
my $job = $jonk->find_job();
is $job->arg, 'arg2';
+ $job->completed;
}
done_testing;
View
4 t/worker.t
@@ -112,6 +112,8 @@ subtest 'find_job / with grabbed_until' => sub {
$re_grabbed_job->completed;
ok not $client->find_job();
+
+ $job->completed;
}
{
@@ -143,6 +145,8 @@ subtest 'find_job / with grabbed_until' => sub {
$re_grabbed_job->completed;
ok not $client->find_job();
+
+ $job->completed;
}
};

0 comments on commit 9698c53

Please sign in to comment.