mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Fixed tests
This commit is contained in:
parent
0780d606d9
commit
a52f636bf7
1 changed files with 2 additions and 2 deletions
|
@ -39,10 +39,10 @@ public class RestApiTest {
|
||||||
String httpsCertPath = context.getFilesDir() + "/" + SyncthingService.HTTPS_CERT_FILE;
|
String httpsCertPath = context.getFilesDir() + "/" + SyncthingService.HTTPS_CERT_FILE;
|
||||||
|
|
||||||
final CountDownLatch latch = new CountDownLatch(2);
|
final CountDownLatch latch = new CountDownLatch(2);
|
||||||
new PollWebGuiAvailableTask(config.getWebGuiUrl(), httpsCertPath, config.getApiKey(), result -> {
|
new PollWebGuiAvailableTask(context, config.getWebGuiUrl(), httpsCertPath, config.getApiKey(), result -> {
|
||||||
mApi.onWebGuiAvailable();
|
mApi.onWebGuiAvailable();
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
}).execute();
|
});
|
||||||
mApi = new RestApi(context, config.getWebGuiUrl(), config.getApiKey(),
|
mApi = new RestApi(context, config.getWebGuiUrl(), config.getApiKey(),
|
||||||
new RestApi.OnApiAvailableListener() {
|
new RestApi.OnApiAvailableListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue