Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 334ea0b

Browse files
author
Alex Luu
committed
remove connection error test
1 parent fb28b3b commit 334ea0b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/web3-providers-ipc/test/unit/check_implementation.test.ts

-17
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,6 @@ describe('IPCProvider', () => {
9797
expect(end).toHaveBeenCalled();
9898
});
9999

100-
it('connection error', async () => {
101-
const ipc = new IpcProvider(socketPath);
102-
// @ts-expect-error mock method
103-
ipc._socketConnection.connecting = false;
104-
// @ts-expect-error mock method
105-
ipc._connectionStatus = 'disconnected';
106-
ipc.connect = jest.fn();
107-
108-
await expect(
109-
ipc.request({
110-
jsonrpc: '2.0',
111-
id: 42,
112-
method: 'eth_getBalance',
113-
params: ['0x407d73d8a49eeb85d32cf465507dd71d507100c1', 'latest'],
114-
}),
115-
).rejects.toThrow('Connection not open');
116-
});
117100
it('_onCloseHandler autoReconnect=false', () => {
118101
const ipc = new IpcProvider(socketPath, {}, { autoReconnect: false });
119102
const _clearQueues = jest.fn();

0 commit comments

Comments
 (0)