Skip to content

Commit

Permalink
Remove minimum version check test
Browse files Browse the repository at this point in the history
To allow removal of the check in the client, see
celo-org/celo-blockchain#2026.
  • Loading branch information
karlb committed Jun 7, 2023
1 parent 75e4b54 commit 4d4a2ce
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/celotool/src/e2e-tests/blockchain_parameters_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ describe('Blockchain parameters tests', function (this: any) {
parameters = await kit.contracts.getBlockchainParameters()
}

const setMinimumClientVersion = async (major: number, minor: number, patch: number) => {
await parameters.setMinimumClientVersion(major, minor, patch).send({ from: validatorAddress })
}

describe('when running a node', () => {
before(async () => {
await restartGeth()
Expand All @@ -84,19 +80,5 @@ describe('Blockchain parameters tests', function (this: any) {
const res = await parameters.getBlockGasLimit()
assert.equal(0, res.comparedTo(23000000))
})
it('should exit when minimum version is updated', async () => {
this.timeout(0)
await setMinimumClientVersion(1, 9, 99)
// The client checks every 60 seconds and then waits 10 seconds before quitting, so we
// may have to wait a little over 70 seconds
await sleep(75, true)
try {
// It should have exited by now, call RPC to trigger error
await kit.connection.getBlockNumber()
} catch (_) {
return
}
throw new Error('expected failure')
})
})
})

0 comments on commit 4d4a2ce

Please sign in to comment.