Skip to content

Commit

Permalink
Remove custom timeouts in JS E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Jun 26, 2024
1 parent 04d0941 commit 7527958
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions tests/web3js/eth_streaming_filters_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const conf = require("./config");
const {assert} = require("chai");
const storageABI = require('../fixtures/storageABI.json')

const timeout = 30

async function assertFilterLogs(subscription, expectedLogs) {
let allLogs = []
return new Promise((res, rej) => {
Expand Down Expand Up @@ -65,10 +63,6 @@ async function assertFilterLogs(subscription, expectedLogs) {
}

it('streaming of logs using filters', async() => {
// hack if the ws connection is not closed
// TMP: disable
// setTimeout(() => process.exit(1), (timeout - 1) * 1000)

let contractDeployment = await helpers.deployContract("storage")
let contractAddress = contractDeployment.receipt.contractAddress

Expand Down
6 changes: 0 additions & 6 deletions tests/web3js/eth_streaming_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ const helpers = require('./helpers')
const { assert } = require('chai')
const { Web3 } = require("web3");

const timeout = 30 // test timeout seconds

it('streaming of blocks, transactions, logs using filters', async () => {
// hack if the ws connection is not closed
// TMP: disable
// setTimeout(() => process.exit(1), (timeout - 1) * 1000)

let deployed = await helpers.deployContract("storage")
let contractAddress = deployed.receipt.contractAddress

Expand Down

0 comments on commit 7527958

Please sign in to comment.