Skip to content

Commit

Permalink
meta-txs: skip gas test for coverage measure
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed May 14, 2019
1 parent d528882 commit 03fd3af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/contracts/relayer/relayer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { skipCoverage } = require('../../helpers/coverage')
const { sha3, soliditySha3 } = require('web3-utils')
const { assertRevert } = require('../../helpers/assertThrow')
const { getEventArgument, getNewProxyAddress } = require('../../helpers/events')
Expand Down Expand Up @@ -138,7 +139,7 @@ contract('Relayer', ([_, root, member, anyone, vault, offChainRelayerService]) =
assertEvent(receipt, 'TransactionRelayed', { from: sender, to: app.address, nonce: nextNonce, calldata })
})

it.only('overloads a transaction with ~50k of gas', async () => {
it.only('overloads a transaction with ~50k of gas', skipCoverage(async () => {
const { receipt: { cumulativeGasUsed: relayedGasUsed } } = await relayer.relay(sender, app.address, nextNonce, calldata, gasRefund, GAS_PRICE, signature, { from })
const { receipt: { cumulativeGasUsed: nonRelayerGasUsed } } = await app.write(10, { from: sender })

Expand All @@ -148,7 +149,7 @@ contract('Relayer', ([_, root, member, anyone, vault, offChainRelayerService]) =
console.log('gasOverload:', gasOverload)

assert.isBelow(gasOverload, 50000, 'relayed txs gas overload is higher than 50k')
})
}))
})
})

Expand Down

0 comments on commit 03fd3af

Please sign in to comment.