Skip to content
Snippets Groups Projects
Commit 977d79a9 authored by akwizgran's avatar akwizgran
Browse files

Update test URLs to fix failing tests.

parent 04d249d9
Branches
No related tags found
1 merge request!2update upstream
...@@ -155,7 +155,7 @@ public class TorServiceTest { ...@@ -155,7 +155,7 @@ public class TorServiceTest {
assertTrue("NetCipher.getHttpURLConnection should use Tor", assertTrue("NetCipher.getHttpURLConnection should use Tor",
NetCipher.isNetCipherGetHttpURLConnectionUsingTor()); NetCipher.isNetCipherGetHttpURLConnectionUsingTor());
URLConnection c = NetCipher.getHttpsURLConnection("https://www.nytimes3xbfgragh.onion/"); URLConnection c = NetCipher.getHttpsURLConnection("https://www.nytimesn7cgmftshazwhfgzm37qxb44r64ytbb2dj3x62d2lljsciiyd.onion/");
Log.i(TAG, "Content-Length: " + c.getContentLength()); Log.i(TAG, "Content-Length: " + c.getContentLength());
Log.i(TAG, "CONTENTS: " + new String(IOUtils.readFully(c.getInputStream(), 100))); Log.i(TAG, "CONTENTS: " + new String(IOUtils.readFully(c.getInputStream(), 100)));
...@@ -242,7 +242,7 @@ public class TorServiceTest { ...@@ -242,7 +242,7 @@ public class TorServiceTest {
// ~350MB // ~350MB
//URL url = new URL("http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2"); //URL url = new URL("http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2");
// ~3MB // ~3MB
URL url = new URL("http://dl.google.com/android/repository/platform-tools_r24-linux.zip"); URL url = new URL("https://dl.google.com/android/repository/platform-tools_r24-linux.zip");
// 55KB // 55KB
//URL url = new URL("https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar"); //URL url = new URL("https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar");
HttpURLConnection connection = NetCipher.getHttpURLConnection(url); HttpURLConnection connection = NetCipher.getHttpURLConnection(url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment