Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2576 HTTP protocol implementation based on okhttp - change port number of test server used for unit tests to avoid error with concurrently running tests of protocol-http

Sebastian Nagelf1aa728b113a
diff --git a/src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java b/src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java
index 10069827b..d8d2654a1 100644
--- a/src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java
+++ b/src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java
@@ -55,7 +55,7 @@ public class TestBadServerResponses {
private OkHttp http;
private ServerSocket server;
private Configuration conf;
- private int port = 47505;
+ private int port = 47506;
private static final String responseHeader = "HTTP/1.1 200 OK\r\n";
private static final String simpleContent = "Content-Type: text/html\r\n\r\nThis is a text.";