Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/org/labkey/test/util/puppeteer/PuppeteerHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.labkey.remoteapi.SimplePostCommand;
import org.labkey.remoteapi.puppeteer.PuppeteerSettings;
import org.labkey.remoteapi.puppeteer.PuppeteerStatus;
import org.labkey.test.WebTestHelper;

import java.io.IOException;

Expand All @@ -37,7 +36,9 @@ public static void enableRemoteService(Connection connection) throws IOException

public static String getRemoteServiceURL()
{
return WebTestHelper.getTargetServer() + ":3031";
// Note: We are explicitly using localhost here instead of WebTestHelper.getTargetServer() because on TC it will
// use the hostname of the server, which is running Puppeteer with http, so API requests to it will be rejected.
return "http://localhost:3031";
}

public static PuppeteerStatus getStatus(Connection connection) throws IOException, CommandException
Expand Down