Skip to content

Commit

Permalink
fix: removed timer after connecting and disconnecting wsProvider
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <[email protected]>

Revert "fix: removed timer after connecting and disconnecting wsProvider"

This reverts commit 8cc42b8.

a

Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Apr 9, 2024
1 parent f757a21 commit edd503b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/server/tests/acceptance/ws/estimateGas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ describe('@release @web-socket eth_estimateGas', async function () {
afterEach(async () => {
if (wsProvider) {
await wsProvider.destroy();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
});

Expand Down
1 change: 0 additions & 1 deletion packages/server/tests/acceptance/ws/getCode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ describe('@release @web-socket eth_getCode', async function () {
afterEach(async () => {
if (wsProvider) {
await wsProvider.destroy();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ describe('@release @web-socket eth_getTransactionByHash', async function () {

beforeEach(async () => {
wsProvider = new ethers.WebSocketProvider(WS_RELAY_URL);
await new Promise((resolve) => setTimeout(resolve, 1000));
});

afterEach(async () => {
if (wsProvider) {
await wsProvider.destroy();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ describe('@release @web-socket eth_getTransactionReceipt', async function () {

beforeEach(async () => {
wsProvider = new ethers.WebSocketProvider(WS_RELAY_URL);
await new Promise((resolve) => setTimeout(resolve, 1000));
});

afterEach(async () => {
if (wsProvider) {
await wsProvider.destroy();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ describe('@release @web-socket eth_sendRawTransaction', async function () {

beforeEach(async () => {
wsProvider = new ethers.WebSocketProvider(WS_RELAY_URL);
await new Promise((resolve) => setTimeout(resolve, 1000));
});

afterEach(async () => {
if (wsProvider) {
await wsProvider.destroy();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
});

Expand Down

0 comments on commit edd503b

Please sign in to comment.