Skip to content

Commit 793a100

Browse files
committed
Made the helpers async.
1 parent 9f1c673 commit 793a100

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/helpers/shouldFail.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ async function shouldFailWithMessage (promise, message) {
1212
should.fail(`Expected '${message}' failure not received`);
1313
}
1414

15-
function reverting (promise) {
16-
return shouldFailWithMessage(promise, 'revert');
15+
async function reverting (promise) {
16+
await shouldFailWithMessage(promise, 'revert');
1717
}
1818

1919
async function throwing (promise) {
20-
return shouldFailWithMessage(promise, 'invalid opcode');
20+
await shouldFailWithMessage(promise, 'invalid opcode');
2121
}
2222

2323
async function outOfGas (promise) {
24-
return shouldFailWithMessage(promise, 'out of gas');
24+
await shouldFailWithMessage(promise, 'out of gas');
2525
}
2626

2727
module.exports = {

0 commit comments

Comments
 (0)