From: Chris Prather Date: Wed, 19 Sep 2007 10:28:01 +0000 (+0000) Subject: patch stuff up for releasing X-Git-Tag: 0_06~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7a4ac6b206281dbfd5356b8917e155724488d4d7;p=gitmo%2FMooseX-Daemonize.git patch stuff up for releasing r29082@alice-3: perigrin | 2007-09-18 17:16:15 -0500 update to reflect moose's pending init_meta changes r29094@alice-3: perigrin | 2007-09-19 05:26:38 -0500 check in changes from 0.02 r29095@alice-3: perigrin | 2007-09-19 05:27:02 -0500 tag 0.02 --- diff --git a/lib/Test/MooseX/Daemonize.pm b/lib/Test/MooseX/Daemonize.pm index 6b79933..85a72b3 100644 --- a/lib/Test/MooseX/Daemonize.pm +++ b/lib/Test/MooseX/Daemonize.pm @@ -32,7 +32,7 @@ sub daemonize_ok { } else { sleep(1); # Punt on sleep time, 1 seconds should be enough - $Test->ok( -e $daemon->pidfile, $msg ) + $Test->ok( -e $daemon->pidfile->file, $msg ) || $Test->diag( 'Pidfile (' . $daemon->pidfile->file . ') not found.' ); } } diff --git a/t/02.stdout.t b/t/02.stdout.t index b506f25..5ce4e99 100644 --- a/t/02.stdout.t +++ b/t/02.stdout.t @@ -20,11 +20,10 @@ my $Test = Test::Builder->new; sub output_ok { my ($self) = @_; my $count = 1; - while (1) { + for ( 0 .. 3 ) { $Test->ok( $count++, "$count output_ok" ); sleep(1); } - } no Moose; } @@ -40,8 +39,9 @@ my $app = TestOutput->new( test_output => join( '/', $cwd, 'results' ), ); daemonize_ok( $app, 'child forked okay' ); -sleep(5); # give ourself a chance to produce some output +sleep(3); # give ourself a chance to produce some output $app->stop( no_exit => 1 ); check_test_output($app); unlink( $app->test_output ); +exit;