From 5a4b6c4c89f6762c4546a0e20a69a33ee74bdec9 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 11 May 2022 11:44:07 +0200 Subject: [PATCH] fix: capture timeouts in deposit --- test/ping-pong/user-local/src/index.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/ping-pong/user-local/src/index.mjs b/test/ping-pong/user-local/src/index.mjs index 86c92ba2e..1866d012c 100644 --- a/test/ping-pong/user-local/src/index.mjs +++ b/test/ping-pong/user-local/src/index.mjs @@ -37,7 +37,11 @@ async function localTest() { let offchainTx = !!IS_TEST_RUNNER; // Create a block of deposits for (let i = 0; i < txPerBlock; i++) { - await nf3.deposit(ercAddress, tokenType, value, tokenId); + try { + await nf3.deposit(ercAddress, tokenType, value, tokenId); + } catch (err) { + logger.warn(`Error in deposit ${err}`); + } } // Create a block of transfer and deposit transactions