Skip to content

Commit b5eb751

Browse files
committed
refac(tests): simplify assertions for bytecode mismatch error messages
1 parent 191c6dd commit b5eb751

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/forge/tests/cli/verify_bytecode.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,8 @@ fn test_verify_bytecode_mismatch(
190190
let output = cmd.forge_fuse().args(args).assert_success().get_output().stderr_lossy();
191191

192192
// Verify that bytecode does NOT match (recompiled with incorrect source)
193-
assert!(
194-
output.contains(format!("Error: Creation code did not match").as_str()),
195-
);
196-
assert!(
197-
output.contains(format!("Error: Runtime code did not match").as_str()),
198-
);
193+
assert!(output.contains("Error: Creation code did not match".to_string().as_str()));
194+
assert!(output.contains("Error: Runtime code did not match".to_string().as_str()));
199195
}
200196

201197
forgetest_async!(can_verify_bytecode_no_metadata, |prj, cmd| {

0 commit comments

Comments
 (0)