From 334ea0bbb1c1a5d363e918c838b2ab6c77f4e33e Mon Sep 17 00:00:00 2001 From: Alex Luu Date: Sat, 24 Feb 2024 15:17:54 -0500 Subject: [PATCH] remove connection error test --- .../test/unit/check_implementation.test.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/packages/web3-providers-ipc/test/unit/check_implementation.test.ts b/packages/web3-providers-ipc/test/unit/check_implementation.test.ts index 3b75744a25a..cc13c1b0281 100644 --- a/packages/web3-providers-ipc/test/unit/check_implementation.test.ts +++ b/packages/web3-providers-ipc/test/unit/check_implementation.test.ts @@ -97,23 +97,6 @@ describe('IPCProvider', () => { expect(end).toHaveBeenCalled(); }); - it('connection error', async () => { - const ipc = new IpcProvider(socketPath); - // @ts-expect-error mock method - ipc._socketConnection.connecting = false; - // @ts-expect-error mock method - ipc._connectionStatus = 'disconnected'; - ipc.connect = jest.fn(); - - await expect( - ipc.request({ - jsonrpc: '2.0', - id: 42, - method: 'eth_getBalance', - params: ['0x407d73d8a49eeb85d32cf465507dd71d507100c1', 'latest'], - }), - ).rejects.toThrow('Connection not open'); - }); it('_onCloseHandler autoReconnect=false', () => { const ipc = new IpcProvider(socketPath, {}, { autoReconnect: false }); const _clearQueues = jest.fn();