Changeset 971 for trunk/t/DNSTest.pm


Ignore:
Timestamp:
01/09/26 11:48:17 (3 weeks ago)
Author:
Kris Deugau
Message:

/trunk

Tweak DB-safety check in test setup module
See #88

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/DNSTest.pm

    r961 r971  
    6666
    6767  my ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records");
    68   BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > 30 records!\n")
    69         if $rcount > 50;
    70   cmp_ok( $rcount, '<=', 50, "record ($rcount): looks like a test DB" );
     68  my $maxrecs = 60;
     69  BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > $maxrecs records!\n")
     70        if $rcount > $maxrecs;
     71  cmp_ok( $rcount, '<=', $maxrecs, "record ($rcount): looks like a test DB" );
    7172
    7273  # drop all tables etc
Note: See TracChangeset for help on using the changeset viewer.