Skip to content

Commit 07a1f67

Browse files
authored
chore: fixes for --all-features tests (#8937)
1 parent cba6e97 commit 07a1f67

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

crates/cast/tests/cli/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@ to 0x91da5bf3F8Eb72724E6f50Ec6C3D199C6355c59c
702702
703703
"#]]);
704704

705+
let rpc = next_http_rpc_endpoint();
706+
705707
// <https://etherscan.io/tx/0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c>
706708
cmd.cast_fuse()
707709
.args([
@@ -879,6 +881,8 @@ casttest!(mktx_requires_to, |_prj, cmd| {
879881
"mktx",
880882
"--private-key",
881883
"0x0000000000000000000000000000000000000000000000000000000000000001",
884+
"--chain",
885+
"1",
882886
]);
883887
cmd.assert_failure().stderr_eq(str![[r#"
884888
Error:
@@ -967,6 +971,8 @@ casttest!(send_requires_to, |_prj, cmd| {
967971
"send",
968972
"--private-key",
969973
"0x0000000000000000000000000000000000000000000000000000000000000001",
974+
"--chain",
975+
"1",
970976
]);
971977
cmd.assert_failure().stderr_eq(str![[r#"
972978
Error:

crates/forge/tests/it/inline.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
//! Inline configuration tests.
22
3-
use crate::test_helpers::TEST_DATA_DEFAULT;
3+
use crate::test_helpers::{ForgeTestData, ForgeTestProfile, TEST_DATA_DEFAULT};
44
use forge::{result::TestKind, TestOptionsBuilder};
55
use foundry_config::{FuzzConfig, InvariantConfig};
66
use foundry_test_utils::Filter;
77

88
#[tokio::test(flavor = "multi_thread")]
99
async fn inline_config_run_fuzz() {
1010
let filter = Filter::new(".*", ".*", ".*inline/FuzzInlineConf.t.sol");
11-
let mut runner = TEST_DATA_DEFAULT.runner();
11+
// Fresh runner to make sure there's no persisted failure from previous tests.
12+
let mut runner = ForgeTestData::new(ForgeTestProfile::Default).runner();
1213
let result = runner.test_collect(&filter);
1314
let results = result
1415
.into_iter()

0 commit comments

Comments
 (0)