Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Dec 19, 2024
1 parent 428ce50 commit 64f79b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/forge/tests/cli/test_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,10 @@ forgetest!(test_fail_deprecation_warning, |prj, cmd| {
function testFail_deprecated() public {
revert("deprecated");
}
function testFail_deprecated2() public {
revert("deprecated2");
}
}
"#,
)
Expand All @@ -2827,6 +2831,6 @@ forgetest!(test_fail_deprecation_warning, |prj, cmd| {
cmd.forge_fuse()
.args(["test", "--mc", "WarnDeprecationTestFail"])
.assert_success()
.stderr_eq(r#"Warning: `testFail*` has been deprecated and will be removed in the next release. Consider changing to test_Revert[If|When]_Condition and expecting a revert. Found deprecated testFail* function(s): testFail_deprecated.
.stderr_eq(r#"Warning: `testFail*` has been deprecated and will be removed in the next release. Consider changing to test_Revert[If|When]_Condition and expecting a revert. Found deprecated testFail* function(s): testFail_deprecated, testFail_deprecated2.
"#);
});

0 comments on commit 64f79b6

Please sign in to comment.