Ignore:
Timestamp:
01/16/26 11:23:04 (7 days ago)
Author:
Kris Deugau
Message:

/branches/cname-collision

Add inexplicably missed 'use strict; use warnings;', declare a couple of
variables, and fix a comparison using the wrong operator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cname-collision/t/cname.t

    r992 r993  
    44# Template records mean not all published records are natively present in the DB
    55
     6use strict;
     7use warnings;
     8
    69use Test::More;
    710use Data::Dumper;
     
    1215my $dtest = DNSTest::new;
    1316
    14 my $code,$msg;
     17my ($code,$msg);
    1518my $rectype = 5;
    1619my $newname;
    1720my $newval;
     21my $expirystamp;
     22my $rcount;
    1823
    1924
     
    238243        my ($oldstamp) = $dbh->selectrow_array("SELECT stamp FROM records WHERE domain_id = 4 AND host = '$newname' ".
    239244                "AND stampactive = 't' AND expires = 'f'");
    240         ok( $newstamp == $oldstamp, " ... coerced timestamp matches existing active-after timestamp" );
     245        ok( $newstamp eq $oldstamp, " ... coerced timestamp matches existing active-after timestamp" );
    241246      } else {
    242247        print "not ok: $msg";
Note: See TracChangeset for help on using the changeset viewer.