[ https://issues.apache.org/jira/browse/SOLR-15389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340456#comment-17340456 ]
Mike Drob commented on SOLR-15389: ---------------------------------- {quote}I don't really trust that to be portable across systems or JDK versions. {quote} So, yea, this is a problem. Not even across JDK versions, but on the same system across multiple test runs because the seed is different we can get different iteration order on the Set producing different query Strings. A coworker suggested using Hamcrest Matchers, I'll put up a partial PR shortly. It's kind of verbose, but I think it has a good potential. > Certain tests rely on DisjunctionMaxQuery clause order > ------------------------------------------------------- > > Key: SOLR-15389 > URL: https://issues.apache.org/jira/browse/SOLR-15389 > Project: Solr > Issue Type: Test > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Mike Drob > Priority: Major > > Broken by LUCENE-9940 > Test failures e.g. > org.apache.solr.search.TestSolrQueryParser.testSynonymQueryStyle > {noformat} > org.junit.ComparisonFailure: > <(t_pick_best_foo:[tabbi | t_pick_best_foo:cat | t_pick_best_foo:felin] | > t_pick_best_foo:a...> > <(t_pick_best_foo:[felin | t_pick_best_foo:cat | t_pick_best_foo:tabbi] | > t_pick_best_foo:a...> > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org