aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/BrowserTestExtension/tests/longRunningTests.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-09-19 10:56:36 +0200
committerMaximilian Krambach <[email protected]>2018-09-19 10:56:36 +0200
commit7f149586062ebae8114f64078771cb25579f5003 (patch)
treeafb8f87c0a8195ce8cf320115edc80019c9fd0af /lang/js/BrowserTestExtension/tests/longRunningTests.js
parentdocs: python bindings (diff)
downloadgpgme-7f149586062ebae8114f64078771cb25579f5003.tar.gz
gpgme-7f149586062ebae8114f64078771cb25579f5003.zip
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.
Diffstat (limited to 'lang/js/BrowserTestExtension/tests/longRunningTests.js')
-rw-r--r--lang/js/BrowserTestExtension/tests/longRunningTests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/BrowserTestExtension/tests/longRunningTests.js b/lang/js/BrowserTestExtension/tests/longRunningTests.js
index f28a6e78..534a95aa 100644
--- a/lang/js/BrowserTestExtension/tests/longRunningTests.js
+++ b/lang/js/BrowserTestExtension/tests/longRunningTests.js
@@ -27,7 +27,7 @@ describe('Long running Encryption/Decryption', function () {
let context = null;
const 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();