From 42ca89d2337c32e077d42454889373768f3589a8 Mon Sep 17 00:00:00 2001 From: Erick Erickson Date: Tue, 2 Jul 2013 19:44:46 +0000 Subject: [PATCH] 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 --- .../src/test/org/apache/solr/core/TestCoreDiscovery.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/core/TestCoreDiscovery.java b/solr/core/src/test/org/apache/solr/core/TestCoreDiscovery.java index a85630d042c..c71a4d984a8 100644 --- a/solr/core/src/test/org/apache/solr/core/TestCoreDiscovery.java +++ b/solr/core/src/test/org/apache/solr/core/TestCoreDiscovery.java @@ -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();