about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-02 11:04:13 +0000
committerEric Wong <e@80x24.org>2020-09-03 20:11:03 +0000
commit73e3a6ed6e95adc67cfa10079f11c28fe3f78517 (patch)
tree46faba429086e37aeef256315da61dfeebe2179f /t/v2writable.t
parentd73d783ab2cf14ba28ca63723223d8c85a68cdd5 (diff)
downloadpublic-inbox-73e3a6ed6e95adc67cfa10079f11c28fe3f78517.tar.gz
use more idiomatic internal API for ->over access
{over_ro} being a part of the Search object is a historical
oddity which will go away, soon.  Lets start removing its use in
tests and rarely-used helper scripts.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 9e4547ba..217eaf97 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -235,7 +235,7 @@ EOF
         my $mset = $srch->query('m:'.$mid, { mset => 1});
         is($mset->size, 0, 'no longer found in Xapian');
         my @log1 = (@log, qw(-1 --pretty=raw --raw -r --no-renames));
-        is($srch->{over_ro}->get_art($num), undef,
+        is($ibx->over->get_art($num), undef,
                 'removal propagated to Over DB');
 
         my $after = $git0->qx(@log1);
@@ -278,7 +278,7 @@ EOF
         ok($im->add($mime), 'add excessively long References');
         $im->barrier;
 
-        my $msgs = $ibx->search->{over_ro}->get_thread('x'x244);
+        my $msgs = $ibx->over->get_thread('x'x244);
         is(2, scalar(@$msgs), 'got both messages');
         is($msgs->[0]->{mid}, 'x'x244, 'stored truncated mid');
         is($msgs->[1]->{references}, '<'.('x'x244).'>', 'stored truncated ref');