Skip to content

Commit

Permalink
Add Assistant Capability
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Mar 5, 2024
1 parent e2657d8 commit 8620fae
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}

Expand All @@ -132,8 +132,6 @@ private static void waitForServer(OwnCloudClient client, Uri baseUrl) {

} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8620fae

Please sign in to comment.