1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 22:31:16 +00:00

Fixed tests

This commit is contained in:
Felix Ableitner 2017-01-08 22:09:56 +09:00
parent 0780d606d9
commit a52f636bf7

View file

@ -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