use warnings;
use Data::Dumper;
use Test::More tests => 19;
-use Time::HiRes qw(usleep);
use lib 't','.';
use CP_Testing;
$dbh2->commit();
exit;
}
+wait;
$t=qq{$S works when rows match, reports proper delay};
$dbh->commit();
$dbh2->commit();
exit;
}
+wait;
$t=qq{$S works when rows match, with MRTG output};
$dbh->commit();
if (fork) {
like ($cp->run('DB2replicate-row', '-c 20 --output=MRTG -repinfo=reptest,id,1,foo,yin,yang'),
- qr{^[12]\n0\n\n\n}, $t);
+ qr{^[1-5]\n0\n\n\n}, $t);
}
else {
- usleep 500_000; # 0.5s
+ sleep 1;
$SQL = q{UPDATE reptest SET foo = 'yin' WHERE id = 1};
$dbh2->do($SQL);
$dbh2->commit();
exit;
}
+wait;
$t=qq{$S works when rows match, with simple output};
$dbh->commit();
$dbh2->commit();
exit;
}
+wait;
$dbh2->disconnect();