timgrein opened a new pull request, #13160: URL: https://github.com/apache/lucene/pull/13160
### Description `TestDocumentsImpl` uses the `DocumentsTestBase`, which uses the `RandomIndexWriter` internally for setting up documents to test on. `addDocument` inside `RandomIndexWriter` can lead to a different sequence of doc id assignments. Therefore it probably makes sense to simply check for the existence of a document with the specified term (it's the only containing `adv` in `DocumentsTestBase`) instead of asserting on the id, which is influenced by the writing order. Test passes with failing seed `2BA7909ED992C491`. Closes https://github.com/apache/lucene/issues/13130. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org