Increase timeout to 3s

This commit is contained in:
Radu Tutueanu 2017-02-08 16:35:36 +01:00
parent f19fd3e5dd
commit be584856eb
1 changed files with 3 additions and 4 deletions

View File

@ -66,10 +66,9 @@ module.exports = {
TestCase.assertEqual(session.state, 'active');
// give the session enough time to refresh its access token and bind itself
let timeout = 1500;
if (typeof window !== 'undefined') {
timeout = 2500; // need a longer timeout under React Native because remote debugging
}
// TODO: Use an event to discover when the session is bound
let timeout = 3000;
return wait(timeout).then(() => {
TestCase.assertEqual(session.url, `realm://localhost:9080/${user.identity}/myrealm`);
});