mayya-sharipova commented on a change in pull request #2186: URL: https://github.com/apache/lucene-solr/pull/2186#discussion_r595565982
########## File path: lucene/test-framework/src/java/org/apache/lucene/index/BasePointsFormatTestCase.java ########## @@ -1174,8 +1174,11 @@ public void testMixedSchema() throws Exception { Document doc = new Document(); doc.add(new IntPoint("id", 0)); - w.addDocument(doc); - // now we write another segment where the id field does have points: + IllegalArgumentException ex = + expectThrows(IllegalArgumentException.class, () -> w.addDocument(doc)); + assertEquals( + "cannot change field \"id\" from index options=DOCS to inconsistent index options=NONE", + ex.getMessage()); Review comment: The test refactored [here](https://github.com/apache/lucene/pull/11/commits/0fe3493110ac2a5f750ad41f732436daff6c69f5#diff-974afcef788664579ec220b758dd40bf67d8e72f3fb214e52016b8465fb54289L1161) ---------------------------------------------------------------- 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. 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