From 659579a4af4211b2717e0701602e4b0a06177d8b Mon Sep 17 00:00:00 2001 From: R Chaganti Date: Sat, 4 May 2024 14:08:45 +0400 Subject: [PATCH] fix quicknode blockproducer tests --- tests/block_producer/quicknode_block_producer.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/block_producer/quicknode_block_producer.test.ts b/tests/block_producer/quicknode_block_producer.test.ts index 4d57f40..0ea9313 100644 --- a/tests/block_producer/quicknode_block_producer.test.ts +++ b/tests/block_producer/quicknode_block_producer.test.ts @@ -95,18 +95,18 @@ describe("Block Producer", () => { }); test("Web3 eth instance must be created with first endpoint passed in config.", () => { - expect(mockedEthClass.providers.WebsocketProvider).toHaveBeenCalledWith( + expect(mockedEthClass.providers.HttpProvider).toHaveBeenCalledWith( "rpc.com", expect.anything() ); expect(mockedEthClass).toBeCalledWith( //@ts-ignore - mockedEthClass.providers.WebsocketProvider.mock.instances[0] + mockedEthClass.providers.HttpProvider.mock.instances[0] ); }); test("Web3 eth instance must be created with right wss connection config passed in config.", () => { - expect(mockedEthClass.providers.WebsocketProvider).toHaveBeenCalledWith( + expect(mockedEthClass.providers.HttpProvider).toHaveBeenCalledWith( expect.anything(), { reconnect: { @@ -121,7 +121,7 @@ describe("Block Producer", () => { expect(mockedEthClass).toBeCalledWith( //@ts-ignore - mockedEthClass.providers.WebsocketProvider.mock.instances[0] + mockedEthClass.providers.HttpProvider.mock.instances[0] ); });