From d2c63e1030c79e4c5bf9319973d05c33026bcec7 Mon Sep 17 00:00:00 2001 From: Baron Schwartz Date: Wed, 6 Jun 2012 12:16:25 -0400 Subject: [PATCH] make t/lib/TableChunker.t non-non-deterministic --- t/lib/TableChunker.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/t/lib/TableChunker.t b/t/lib/TableChunker.t index 823e5c18..ddedf9be 100644 --- a/t/lib/TableChunker.t +++ b/t/lib/TableChunker.t @@ -507,11 +507,11 @@ SKIP: { tbl => 'film', chunk_size => '5k' ); - # This may fail because Rows and Avg_row_length can vary - # slightly for InnoDB tables. - ok( - $avg >= 173 && $avg <= 206, - "size_to_rows() returns avg row len in list context (173<=$avg<=206)" + # This will fail if we try to set a specific range, because Rows and + # Avg_row_length can vary slightly-to-greatly for InnoDB tables. + like( + $avg, qr/^\d+$/, + "size_to_rows() returns avg row len in list context ($avg)" ); ($size, $avg) = $c->size_to_rows(