mirror of https://github.com/apache/lucene.git
Fixing another file separator issue, test only
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1499074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
618cae1092
commit
42ca89d233
|
@ -184,8 +184,10 @@ public class TestCoreDiscovery extends SolrTestCaseJ4 {
|
|||
String message = cause.getMessage();
|
||||
assertTrue("Should have seen an exception because two cores had the same name",
|
||||
message.indexOf("Core core1 defined more than once") != -1);
|
||||
assertTrue("/core1 should have been mentioned in the message", message.indexOf("/core1") != -1);
|
||||
assertTrue("/core2 should have been mentioned in the message", message.indexOf("/core2") != -1);
|
||||
assertTrue(File.separator + "core1 should have been mentioned in the message: " + message,
|
||||
message.indexOf(File.separator + "core1") != -1);
|
||||
assertTrue(File.separator + "core2 should have been mentioned in the message:" + message,
|
||||
message.indexOf(File.separator + "core2") != -1);
|
||||
} finally {
|
||||
if (cc != null) {
|
||||
cc.shutdown();
|
||||
|
|
Loading…
Reference in New Issue