From 8620fae325adbbbc8a26c5d1d4ceaf97f6e85290 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Tue, 5 Mar 2024 11:50:32 +0100 Subject: [PATCH] Add Assistant Capability Signed-off-by: alperozturk --- .../java/com/owncloud/android/AbstractIT.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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) {