From 90577102f4eabdf57b570457062de07398b72415 Mon Sep 17 00:00:00 2001 From: "Eric W. Biederman" Date: Tue, 17 Jul 2018 19:32:01 -0500 Subject: t/v2reindex.t: Swap the order of minmax tests so errors make sense Previously if a minmax test failed it would say it was expecting the incorrect value, which is confusing when looking into why the test fails. Signed-off-by: "Eric W. Biederman" --- t/v2reindex.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/v2reindex.t b/t/v2reindex.t index 5bc307f1..8af30991 100644 --- a/t/v2reindex.t +++ b/t/v2reindex.t @@ -63,7 +63,7 @@ $im->done; ok(-d $xap, 'Xapian directories recreated'); delete $ibx->{mm}; -is_deeply($minmax, [ $ibx->mm->minmax ], 'minmax unchanged'); +is_deeply([ $ibx->mm->minmax ], $minmax, 'minmax unchanged'); ok(unlink "$mainrepo/msgmap.sqlite3", 'remove msgmap'); remove_tree($xap); @@ -77,7 +77,7 @@ ok(!-d $xap, 'Xapian directories removed again'); $im->done; ok(-d $xap, 'Xapian directories recreated'); delete $ibx->{mm}; - is_deeply($minmax, [ $ibx->mm->minmax ], 'minmax unchanged'); + is_deeply([ $ibx->mm->minmax ], $minmax, 'minmax unchanged'); } ok(unlink "$mainrepo/msgmap.sqlite3", 'remove msgmap'); @@ -92,7 +92,7 @@ ok(!-d $xap, 'Xapian directories removed again'); $im->done; ok(-d $xap, 'Xapian directories recreated'); delete $ibx->{mm}; - is_deeply($minmax, [ $ibx->mm->minmax ], 'minmax unchanged'); + is_deeply([ $ibx->mm->minmax ], $minmax, 'minmax unchanged'); } done_testing(); -- cgit v1.2.3-24-ge0c7