|
|
@ -58,9 +58,10 @@ public class MobileDeviceManagementWithNoDevices extends TestBase {
|
|
|
|
|
|
|
|
|
|
|
|
while (!checkScopes(Constants.APIApplicationRegistration.PERMISSION_LIST)) {
|
|
|
|
while (!checkScopes(Constants.APIApplicationRegistration.PERMISSION_LIST)) {
|
|
|
|
TimeUnit.SECONDS.sleep(5);
|
|
|
|
TimeUnit.SECONDS.sleep(5);
|
|
|
|
long WAIT_TIME = 30000;
|
|
|
|
long WAIT_TIME = 40000;
|
|
|
|
if (System.currentTimeMillis() - startTime > WAIT_TIME) {
|
|
|
|
if (System.currentTimeMillis() - startTime > WAIT_TIME) {
|
|
|
|
Assert.fail("Required APIs are not deployed after waiting for " + WAIT_TIME + " time-out has happened");
|
|
|
|
Assert.fail("Required APIs are not deployed after waiting for " + WAIT_TIME + " ms time-out has "
|
|
|
|
|
|
|
|
+ "happened");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|