From ca19401c3049b258c1967bd3630079da413ad2ad Mon Sep 17 00:00:00 2001 From: benesjan Date: Wed, 23 Aug 2023 06:56:28 +0000 Subject: [PATCH] test: fixed test after rebase --- yarn-project/end-to-end/src/e2e_sandbox_example.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_sandbox_example.test.ts b/yarn-project/end-to-end/src/e2e_sandbox_example.test.ts index 6bea997895c..0da06c340a8 100644 --- a/yarn-project/end-to-end/src/e2e_sandbox_example.test.ts +++ b/yarn-project/end-to-end/src/e2e_sandbox_example.test.ts @@ -9,7 +9,7 @@ import { createAztecRpcClient, createDebugLogger, getSchnorrAccount, - mustSucceedFetch, + makeFetch, } from '@aztec/aztec.js'; // docs:end:imports @@ -35,7 +35,9 @@ describe('e2e_sandbox_example', () => { const logger = createDebugLogger('private-token'); const sandboxUrl = 'http://localhost:8080'; - const aztecRpc = createAztecRpcClient(sandboxUrl, mustSucceedFetch); + // We create AztecRPC client connected to the sandbox URL and we use fetch with 3 automatic retries and a 1s, 2s + // and 3s intervals between failures + const aztecRpc = createAztecRpcClient(sandboxUrl, makeFetch([1, 2, 3], false)); const nodeInfo = await aztecRpc.getNodeInfo();