Changeset 157
- Timestamp:
- 02/09/09 21:46:26 (10 months ago)
- Files:
-
- 1 modified
-
branches/use-existing-dbh/t/scoreboard.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/use-existing-dbh/t/scoreboard.t
r134 r157 10 10 use TheSchwartz; 11 11 use File::Spec qw(); 12 # create a tmp directory with a unique name. This stops 13 # us conflicting with any other runs of this process and means 14 # we tidy up after ourselves 15 my $tempdir = tempdir( CLEANUP => 1 ); 12 16 13 17 run_tests(10, sub { … … 17 21 setup_dbs({prefix => $pfx}, $dbs); 18 22 19 my $client = TheSchwartz->new(scoreboard => '/tmp',23 my $client = TheSchwartz->new(scoreboard => $tempdir, 20 24 databases => [ 21 25 map { { … … 39 43 40 44 my $rv = eval { Worker::Addition->work_safely($job); }; 41 ok(length($@) == 0, 'Finished job with out error'); 45 ok(length($@) == 0, 'Finished job with out error') 46 or diag($@); 42 47 43 48 unless (ok(-e $sb_file, "Scoreboard file exists")) {
