Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java
index 41eae21f9..04d75677d 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java
@@ -48,7 +48,7 @@ public class FileReaderTest extends AbstractTestServerClientCase {
*/
public void testReadStream() throws URISyntaxException, CoreException, IOException {
RepositoryTransport transport = new RepositoryTransport();
- URI toDownload = new URI("http://localhost:8080/public/index.html");
+ URI toDownload = new URI(getBaseURL() + "/public/index.html");
final NullProgressMonitor monitor = new NullProgressMonitor();
InputStream stream = transport.stream(toDownload, monitor);
stream.close();
@@ -60,7 +60,7 @@ public class FileReaderTest extends AbstractTestServerClientCase {
*/
public void testRead() throws URISyntaxException, CoreException, IOException {
RepositoryTransport transport = new RepositoryTransport();
- URI toDownload = new URI("http://localhost:8080/public/index.html");
+ URI toDownload = new URI(getBaseURL() + "/public/index.html");
OutputStream target = new ByteArrayOutputStream();
final NullProgressMonitor monitor = new NullProgressMonitor();
IStatus result = transport.download(toDownload, target, monitor);

Back to the top