From commits-return-114849-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Jun 10 16:35:24 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id A1BA118062B for ; Wed, 10 Jun 2020 18:35:24 +0200 (CEST) Received: (qmail 89662 invoked by uid 500); 10 Jun 2020 16:35:24 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 89644 invoked by uid 99); 10 Jun 2020 16:35:23 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2020 16:35:23 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 7676D8D417; Wed, 10 Jun 2020 16:35:23 +0000 (UTC) Date: Wed, 10 Jun 2020 16:35:23 +0000 To: "commits@lucene.apache.org" Subject: [lucene-solr] branch branch_8x updated: Fix TestPhraseWildcardQuery.testExplain to make it less fragile. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <159180692275.3813.16066203395667093166@gitbox.apache.org> From: broustant@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: lucene-solr X-Git-Refname: refs/heads/branch_8x X-Git-Reftype: branch X-Git-Oldrev: 6c77f4603cfd6d8566d4eae7d287e727edde78ed X-Git-Newrev: 23cf5082ae18418d8073bf5cc90162aff44445ee X-Git-Rev: 23cf5082ae18418d8073bf5cc90162aff44445ee X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. broustant pushed a commit to branch branch_8x in repository https://gitbox.apache.org/repos/asf/lucene-solr.git The following commit(s) were added to refs/heads/branch_8x by this push: new 23cf508 Fix TestPhraseWildcardQuery.testExplain to make it less fragile. 23cf508 is described below commit 23cf5082ae18418d8073bf5cc90162aff44445ee Author: Bruno Roustant AuthorDate: Wed Jun 10 16:30:25 2020 +0200 Fix TestPhraseWildcardQuery.testExplain to make it less fragile. --- .../src/test/org/apache/lucene/search/TestPhraseWildcardQuery.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lucene/sandbox/src/test/org/apache/lucene/search/TestPhraseWildcardQuery.java b/lucene/sandbox/src/test/org/apache/lucene/search/TestPhraseWildcardQuery.java index 91ec32e..c8d9d51 100644 --- a/lucene/sandbox/src/test/org/apache/lucene/search/TestPhraseWildcardQuery.java +++ b/lucene/sandbox/src/test/org/apache/lucene/search/TestPhraseWildcardQuery.java @@ -230,7 +230,8 @@ public class TestPhraseWildcardQuery extends LuceneTestCase { for (ScoreDoc scoreDoc : searcher.search(testQuery, MAX_DOCS).scoreDocs) { Explanation explanation = searcher.explain(testQuery, scoreDoc.doc); assertTrue(explanation.getValue().doubleValue() > 0); - assertEquals("weight(phraseWildcard(title:\"t?e b* b*\") in 1) [AssertingSimilarity], result of:", explanation.getDescription()); + assertTrue("Unexpected explanation \"" + explanation.getDescription() + "\"", + explanation.getDescription().startsWith("weight(phraseWildcard(title:\"t?e b* b*\")")); } // Verify that if we call PhraseWildcardQuery.PhraseWildcardWeight.scorer() twice,