diff --git a/library/src/androidTest/java/com/owncloud/android/AbstractIT.java b/library/src/androidTest/java/com/owncloud/android/AbstractIT.java index a1394caa1..0bf8b66cf 100644 --- a/library/src/androidTest/java/com/owncloud/android/AbstractIT.java +++ b/library/src/androidTest/java/com/owncloud/android/AbstractIT.java @@ -115,14 +115,14 @@ public static void beforeAll() throws InterruptedException, private static void waitForServer(OwnCloudClient client, Uri baseUrl) { // use http - Uri httpUrl = Uri.parse(baseUrl.toString().replaceFirst("https", "http")); + Uri httpUrl = Uri.parse(baseUrl.toString().replaceFirst("https", "https")); GetMethod get = new GetMethod(httpUrl + "/status.php"); try { int i = 0; while (client.executeMethod(get) != HttpStatus.SC_OK && i < 3) { System.out.println("wait…"); - Thread.sleep(60 * 1000); + // Thread.sleep(60 * 1000); i++; } @@ -132,8 +132,6 @@ private static void waitForServer(OwnCloudClient client, Uri baseUrl) { } catch (IOException e) { e.printStackTrace(); - } catch (InterruptedException e) { - e.printStackTrace(); } } @@ -259,8 +257,8 @@ public static File extractAsset(String fileName, Context context) throws IOExcep @After public void after() { - removeOnClient(client); - removeOnClient(client2); + // removeOnClient(client); + // removeOnClient(client2); } private void removeOnClient(OwnCloudClient client) {