From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AC0C41F9FC; Sun, 21 Mar 2021 08:23:50 +0000 (UTC) Date: Sun, 21 Mar 2021 14:23:50 +0600 From: Eric Wong To: meta@public-inbox.org Subject: [SQUASH] t/lei_xsearch: fix warnings from {docid} removal Message-ID: <20210321082350.GA22940@dcvr> References: <20210320124031.30983-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210320124031.30983-1-e@80x24.org> List-Id: Eric Wong wrote: > Stop showing `docid' since it's not useful with shards. RTF-test-output :x ---------8<------- Subject: [PATCH] t/lei_xsearch: fix warnings from {docid} removal --- t/lei_xsearch.t | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/t/lei_xsearch.t b/t/lei_xsearch.t index e56b2820..3eb44233 100644 --- a/t/lei_xsearch.t +++ b/t/lei_xsearch.t @@ -3,7 +3,7 @@ # License: AGPL-3.0+ use strict; use v5.10.1; -use List::Util qw(shuffle max); +use List::Util qw(shuffle); use PublicInbox::TestCommon; use PublicInbox::Eml; require_mods(qw(DBD::SQLite Search::Xapian)); @@ -62,9 +62,6 @@ is(scalar(@msgs), $nr, 'smsgs retrieved for all'); $mset = $lxs->recent(undef, { limit => 1 }); is($mset->size, 1, 'one result'); -my $max = max(map { $_->{docid} } @msgs); -is($lxs->smsg_for(($mset->items)[0])->{docid}, $max, - 'got highest docid'); my @ibxish = $lxs->locals; is(scalar(@ibxish), scalar(@ibx) + 1, 'got locals back');