Skip to content

Commit 679fde4

Browse files
committed
SelfTestBase: Use a dynamic port (port 0) for Heritrix web port
This stops the tests from failing when you happen to be running Heritrix or something else on port 8443.
1 parent 4695f8a commit 679fde4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/test/java/org/archive/crawler/selftest/SelfTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ protected void startHttpServer() throws Exception {
208208
protected void startHeritrix(String path) throws Exception {
209209
String authPassword =
210210
(new BigInteger(SecureRandom.getSeed(16))).abs().toString(16);
211-
String[] args = { "-j", path + "/jobs", "-a", authPassword };
211+
String[] args = { "-j", path + "/jobs", "-a", authPassword, "-p", "0" };
212212
// TODO: add auth password?
213213
heritrix = new Heritrix();
214214
heritrix.instanceMain(args);

0 commit comments

Comments
 (0)