about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-09 07:09:27 -0100
committerEric Wong <e@80x24.org>2021-02-10 06:59:00 +0000
commit3720644a427fcb812fd4996ba0d241bfedf7571a (patch)
treee196fd09bee2c92ba3fafe4f6df48ed87804e89e
parentc1a2b1f49ef4fd6e1f0033cbe3e3bcd8f65aca37 (diff)
downloadpublic-inbox-3720644a427fcb812fd4996ba0d241bfedf7571a.tar.gz
We only care abount the number of results.
-rw-r--r--t/thread-index-gap.t10
1 files changed, 4 insertions, 6 deletions
diff --git a/t/thread-index-gap.t b/t/thread-index-gap.t
index 83c3707d..125c5cbd 100644
--- a/t/thread-index-gap.t
+++ b/t/thread-index-gap.t
@@ -47,14 +47,12 @@ for my $msgs (['orig', reverse @msgs], ['shuffle', shuffle(@msgs)]) {
         my $over = $ibx->over;
         my $dbh = $over->dbh;
         my $tid = $dbh->selectall_arrayref('SELECT DISTINCT(tid) FROM over');
-        my @tid = map { $_->[0] } @$tid;
-        is(scalar(@tid), 1, "only one thread initially ($desc)");
+        is(scalar(@$tid), 1, "only one thread initially ($desc)");
         $over->dbh_close;
-        run_script([qw(-index --reindex --rethread), $ibx->{inboxdir}]) or
-                BAIL_OUT 'rethread';
+        run_script([qw(-index --no-fsync --reindex --rethread),
+                        $ibx->{inboxdir}]) or BAIL_OUT 'rethread';
         $tid = $dbh->selectall_arrayref('SELECT DISTINCT(tid) FROM over');
-        @tid = map { $_->[0] } @$tid;
-        is(scalar(@tid), 1, "only one thread after rethread ($desc)");
+        is(scalar(@$tid), 1, "only one thread after rethread ($desc)");
 }
 
 done_testing;