From 20794e47f31e03f69836b05989c1ed27a6ae1257 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 15 Oct 2010 14:28:42 +0000 Subject: [PATCH] SOLR-2163: SolrRequestParserTest.testStreamURL test failure git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022939 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/solr/servlet/SolrRequestParserTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solr/src/test/org/apache/solr/servlet/SolrRequestParserTest.java b/solr/src/test/org/apache/solr/servlet/SolrRequestParserTest.java index 337ee700bf5..2a76ee5b008 100644 --- a/solr/src/test/org/apache/solr/servlet/SolrRequestParserTest.java +++ b/solr/src/test/org/apache/solr/servlet/SolrRequestParserTest.java @@ -39,6 +39,7 @@ import org.apache.solr.common.params.SolrParams; import org.apache.solr.common.util.ContentStream; import org.apache.solr.core.SolrCore; import org.junit.AfterClass; +import org.junit.Assume; import org.junit.BeforeClass; import org.junit.Test; @@ -119,8 +120,8 @@ public class SolrRequestParserTest extends SolrTestCaseJ4 { txt = IOUtils.toString( connection.getInputStream()); } catch( Exception ex ) { - // TODO - should it fail/skip? - fail( "this test only works if you have a network connection." ); + System.out.println( "this test only works if you have a network connection." ); + Assume.assumeNoException(ex); return; }