[ASTERIXDB-2216] Disable flaky test which depends on external site
The feed http://lorem-rss.herokuapp.com/feed seems to be down, disabling
the test which relies on it. Also fixed the assert.
Change-Id: Idcf9acf410aa4b8094a93e40681db284a2156345
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2527
Reviewed-by: Michael Blow <mblow@apache.org>
Tested-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/input/record/reader/RSSRecordReaderTest.java b/asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/input/record/reader/RSSRecordReaderTest.java
index 5033b55..a67b507 100644
--- a/asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/input/record/reader/RSSRecordReaderTest.java
+++ b/asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/input/record/reader/RSSRecordReaderTest.java
@@ -18,14 +18,15 @@
*/
package org.apache.asterix.external.input.record.reader;
-import com.rometools.rome.feed.synd.SyndEntry;
+import java.io.IOException;
+import java.net.MalformedURLException;
+
import org.apache.asterix.external.api.IRawRecord;
import org.apache.asterix.external.input.record.reader.rss.RSSRecordReader;
import org.junit.Assert;
import org.junit.Test;
-import java.io.IOException;
-import java.net.MalformedURLException;
+import com.rometools.rome.feed.synd.SyndEntry;
public class RSSRecordReaderTest {
@Test
@@ -44,7 +45,6 @@
private static final int NO_RECORDS = 10;
- @Test
public void fetchFromLoremWebsite() throws MalformedURLException {
String dummyRssFeedURL = "http://lorem-rss.herokuapp.com/feed";
RSSRecordReader rssRecordReader = new RSSRecordReader(dummyRssFeedURL);
@@ -59,7 +59,7 @@
} catch (Exception e) {
expectedException = e;
}
- Assert.assertEquals(cnt, NO_RECORDS);
+ Assert.assertEquals(NO_RECORDS, cnt);
Assert.assertNull(expectedException);
}
}