Skip to content

Commit ec06318

Browse files
committedMay 14, 2019
meta-txs: skip gas test for coverage measure
1 parent d528882 commit ec06318

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎test/contracts/relayer/relayer.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { skipCoverage } = require('../../helpers/coverage')
12
const { sha3, soliditySha3 } = require('web3-utils')
23
const { assertRevert } = require('../../helpers/assertThrow')
34
const { getEventArgument, getNewProxyAddress } = require('../../helpers/events')
@@ -131,14 +132,14 @@ contract('Relayer', ([_, root, member, anyone, vault, offChainRelayerService]) =
131132
assert.equal(previousTotalRefunds.toString(), currentTotalRefunds.minus(txRefund).toString(), 'total refunds should have been updated')
132133
})
133134

134-
it.only('emits an event', async () => {
135+
it('emits an event', async () => {
135136
const receipt = await relayer.relay(sender, app.address, nextNonce, calldata, gasRefund, GAS_PRICE, signature, { from })
136137

137138
assertAmountOfEvents(receipt, 'TransactionRelayed')
138139
assertEvent(receipt, 'TransactionRelayed', { from: sender, to: app.address, nonce: nextNonce, calldata })
139140
})
140141

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

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

150151
assert.isBelow(gasOverload, 50000, 'relayed txs gas overload is higher than 50k')
151-
})
152+
}))
152153
})
153154
})
154155

0 commit comments

Comments
 (0)
Please sign in to comment.