Changeset 945 for trunk


Ignore:
Timestamp:
12/24/25 12:35:14 (5 hours ago)
Author:
Kris Deugau
Message:

/trunk/t

Tweak test calls checking the DB
See #88

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/DNSTest.pm

    r944 r945  
    4747  # A DB instantiated for these tests should NEVER have more than a handful of domains and maybe 20-30 records.
    4848
     49  $dbh = $dnsdb->{dbh};
     50
    4951  my ($dcount) = $dbh->selectrow_array("SELECT count(*) FROM domains");
    5052  BAIL_OUT("# DB looks like it may not be a test DB, found $dcount > 10 domains!\n")
    5153        if $dcount > 10;
    52   cmp_ok( $dcount, '<=', 10, "domain count: looks like a test DB" );
     54  ok( $dcount, '<=', 10, "domain count ($dcount): looks like a test DB" );
    5355
    5456  my ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records");
    5557  BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > 30 records!\n")
    56         if $rcount > 30;
    57   cmp_ok( $rcount, '<=', 30, "record count: looks like a test DB" );
    58 
    59   $dbh = $dnsdb->{dbh};
     58        if $rcount > 50;
     59  ok( $rcount, '<=', 50, "record ($rcount): looks like a test DB" );
    6060
    6161  # drop all tables etc
Note: See TracChangeset for help on using the changeset viewer.