From 7f149586062ebae8114f64078771cb25579f5003 Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Wed, 19 Sep 2018 10:56:36 +0200 Subject: js: add configuration option on startup -- * src/index.js: Added an optional configuration object for the startup. * configuration: timeout - the initial check for a connection ran into timeouts on slower testing machines. 500ms for initial startup is not sufficient everywhere. The default timeout was raised to 1000ms, and as an option this timeout can be increased even further. * BrowsertestExtension: Set the initial connection timeouts to 2 seconds, to be able to test on slower machines. --- lang/js/BrowserTestExtension/tests/encryptDecryptTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/js/BrowserTestExtension/tests/encryptDecryptTest.js') diff --git a/lang/js/BrowserTestExtension/tests/encryptDecryptTest.js b/lang/js/BrowserTestExtension/tests/encryptDecryptTest.js index c10c5d06..b4e4f3fb 100644 --- a/lang/js/BrowserTestExtension/tests/encryptDecryptTest.js +++ b/lang/js/BrowserTestExtension/tests/encryptDecryptTest.js @@ -29,7 +29,7 @@ describe('Encryption and Decryption', function (){ let good_fpr = inputvalues.encrypt.good.fingerprint; before(function (done){ - const prm = Gpgmejs.init(); + const prm = Gpgmejs.init({ timeout: 2000 }); prm.then(function (gpgmejs){ context = gpgmejs; done(); -- cgit v1.2.3