Skip to content

Commit 741db53

Browse files
authored
fix(cheatcodes): clarify vm.expectRevert error message (#8463)
1 parent 66bc49e commit 741db53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cheatcodes/src/test/expect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ pub(crate) fn handle_expect_revert(
555555
}
556556
};
557557

558-
ensure!(!matches!(status, return_ok!()), "call did not revert as expected");
558+
ensure!(!matches!(status, return_ok!()), "next call did not revert as expected");
559559

560560
// If None, accept any revert
561561
let Some(expected_revert) = expected_revert else {

0 commit comments

Comments
 (0)