mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 20:31: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;
|
||||
|
||||
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();
|
||||
latch.countDown();
|
||||
}).execute();
|
||||
});
|
||||
mApi = new RestApi(context, config.getWebGuiUrl(), config.getApiKey(),
|
||||
new RestApi.OnApiAvailableListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue