t/02_replicate_row.t: Allow for some variation in the replication time
authorChristoph Berg <[email protected]>
Tue, 7 Jun 2016 18:54:02 +0000 (20:54 +0200)
committerChristoph Berg <[email protected]>
Tue, 7 Jun 2016 18:54:02 +0000 (20:54 +0200)
t/02_replicate_row.t

index 7df6354dbc0d2a6a135a479800c0c732df0e5723..84f610807cd1b3d97e7c2db86ba225bcd212c17d 100644 (file)
@@ -141,8 +141,8 @@ else {
 $t=qq{$S works when rows match, with MRTG output};
 $dbh->commit();
 if (fork) {
-    is ($cp->run('DB2replicate-row', '-c 20 --output=MRTG -repinfo=reptest,id,1,foo,yin,yang'),
-        qq{1\n0\n\n\n}, $t);
+    like ($cp->run('DB2replicate-row', '-c 20 --output=MRTG -repinfo=reptest,id,1,foo,yin,yang'),
+        qr{^[12]\n0\n\n\n}, $t);
 }
 else {
     usleep 500_000; # 0.5s