From be584856eb23be1ca7f3c1afd04126dfc264277b Mon Sep 17 00:00:00 2001 From: Radu Tutueanu Date: Wed, 8 Feb 2017 16:35:36 +0100 Subject: [PATCH] Increase timeout to 3s --- tests/js/session-tests.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/js/session-tests.js b/tests/js/session-tests.js index d20f5b3f..70a475d0 100644 --- a/tests/js/session-tests.js +++ b/tests/js/session-tests.js @@ -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`); });