From f8d8774af3c2c6ab45e747b1b6e5a1e5cad811ff Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 23 Nov 2023 07:55:00 -0500 Subject: [PATCH] update socket provider test (#6614) --- packages/web3-utils/test/unit/socket_provider.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web3-utils/test/unit/socket_provider.test.ts b/packages/web3-utils/test/unit/socket_provider.test.ts index b4b46221074..a09f1467ce0 100644 --- a/packages/web3-utils/test/unit/socket_provider.test.ts +++ b/packages/web3-utils/test/unit/socket_provider.test.ts @@ -323,7 +323,7 @@ describe('SocketProvider', () => { // @ts-expect-error run protected method expect(provider._sentRequestsQueue.size).toBe(1); - expect(provider.getSentRequestsQueueSize).toBe(1); + expect(provider.getSentRequestsQueueSize()).toBe(1); provider.on('error', () => { // nothing @@ -335,7 +335,7 @@ describe('SocketProvider', () => { expect(provider.getPendingRequestQueueSize()).toBe(0); // @ts-expect-error run protected method expect(provider._sentRequestsQueue.size).toBe(0); - expect(provider.getSentRequestsQueueSize).toBe(0); + expect(provider.getSentRequestsQueueSize()).toBe(0); }); }); });