Skip to content

Commit

Permalink
remove connection error test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Luu committed Feb 24, 2024
1 parent fb28b3b commit 334ea0b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/web3-providers-ipc/test/unit/check_implementation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

1 comment on commit 334ea0b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 334ea0b Previous: 6c075db Ratio
processingTx 9298 ops/sec (±4.34%) 9301 ops/sec (±4.81%) 1.00
processingContractDeploy 39546 ops/sec (±7.19%) 39129 ops/sec (±7.62%) 0.99
processingContractMethodSend 19307 ops/sec (±4.34%) 19443 ops/sec (±5.19%) 1.01
processingContractMethodCall 39482 ops/sec (±5.99%) 38971 ops/sec (±6.34%) 0.99
abiEncode 43881 ops/sec (±6.83%) 44252 ops/sec (±6.92%) 1.01
abiDecode 31503 ops/sec (±7.81%) 30419 ops/sec (±8.89%) 0.97
sign 1638 ops/sec (±4.39%) 1656 ops/sec (±4.08%) 1.01
verify 370 ops/sec (±1.49%) 373 ops/sec (±0.78%) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.