We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f1c673 commit 793a100Copy full SHA for 793a100
test/helpers/shouldFail.js
@@ -12,16 +12,16 @@ async function shouldFailWithMessage (promise, message) {
12
should.fail(`Expected '${message}' failure not received`);
13
}
14
15
-function reverting (promise) {
16
- return shouldFailWithMessage(promise, 'revert');
+async function reverting (promise) {
+ await shouldFailWithMessage(promise, 'revert');
17
18
19
async function throwing (promise) {
20
- return shouldFailWithMessage(promise, 'invalid opcode');
+ await shouldFailWithMessage(promise, 'invalid opcode');
21
22
23
async function outOfGas (promise) {
24
- return shouldFailWithMessage(promise, 'out of gas');
+ await shouldFailWithMessage(promise, 'out of gas');
25
26
27
module.exports = {
0 commit comments