diff --git a/test/source/mock/backend/backend-data.ts b/test/source/mock/backend/backend-data.ts index 1b54851f76a..2b4f26e6cec 100644 --- a/test/source/mock/backend/backend-data.ts +++ b/test/source/mock/backend/backend-data.ts @@ -97,7 +97,7 @@ export class BackendData { "flags": [ "FORBID_STORING_PASS_PHRASE", ], - "in_memory_pass_phrase_session_length": 3 + "in_memory_pass_phrase_session_length": 10 }; } if (domain === 'no-submit-client-configuration.flowcrypt.test') { diff --git a/test/source/tests/setup.ts b/test/source/tests/setup.ts index e08a10efebc..090ef92a471 100644 --- a/test/source/tests/setup.ts +++ b/test/source/tests/setup.ts @@ -937,10 +937,9 @@ AN8G3r5Htj8olot+jm9mIa5XLXWzMNUZgg== 'cryptup_userpassphrasesessionlengthclientconfigurationflowcrypttest_rules' ]); let savedPassphrase = await BrowserRecipe.getPassphraseFromInMemoryStore(settingsPage, acctEmail, longid); - expect((rules as { in_memory_pass_phrase_session_length: number }).in_memory_pass_phrase_session_length).to.be.equal(3); + expect((rules as { in_memory_pass_phrase_session_length: number }).in_memory_pass_phrase_session_length).to.be.equal(10); expect(savedPassphrase).to.be.equal(passphrase); - // wait 1 minute because we delete expired passphrase every 1 minute - await Util.sleep(3); + await Util.sleep(10); savedPassphrase = await BrowserRecipe.getPassphraseFromInMemoryStore(settingsPage, acctEmail, longid); expect(savedPassphrase).to.be.undefined; }));