From a90cbcee9e2904ed2c2e591662fc73dcc9cd8c68 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 23 Apr 2019 18:03:31 -0700 Subject: [PATCH] test: give more time --- web3.js/src/connection.js | 2 +- web3.js/test/connection.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index 0d101c4cb7..7705d6b007 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -503,7 +503,7 @@ export class Connection { }; break; } - if (attempts === 16) { + if (attempts === 50) { throw new Error( `Unable to obtain a new blockhash after ${Date.now() - startTime}ms`, diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index ab7a57a48b..183f456917 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -567,7 +567,7 @@ test('program account change notification', async () => { break; } - if (++i === 5) { + if (++i === 20) { console.log(JSON.stringify(mockCallback.mock.calls)); throw new Error('mockCallback should be called twice'); }