From e7de01f139de8a5f90e9f1349732ebae8e2975f9 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Wed, 18 Apr 2018 09:13:06 +0000 Subject: v1: remove articles from overview DB Otherwise articles show up again... --- t/search.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/search.t b/t/search.t index 516f5670..48c2511c 100644 --- a/t/search.t +++ b/t/search.t @@ -409,8 +409,15 @@ sub filter_mids { my $txt = $ro->query('"inside another"'); is($txt->[0]->mid, $res->[0]->mid, 'search inside text attachments works'); + + my $mid = $n->[0]->mid; + my ($id, $prev); + my $art = $ro->next_by_mid($mid, \$id, \$prev); + ok($art, 'article exists in OVER DB'); + $rw->unindex_blob($amsg); + $rw->commit_txn_lazy; + is($ro->lookup_article($art->{num}), undef, 'gone from OVER DB'); } -$rw->commit_txn_lazy; done_testing(); -- cgit v1.2.3-24-ge0c7