Skip to content

Commit

Permalink
chore: fixes for --all-features tests (foundry-rs#8937)
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy authored and rplusq committed Sep 25, 2024
1 parent 2929aa7 commit 6ec15a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions crates/cast/tests/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ to 0x91da5bf3F8Eb72724E6f50Ec6C3D199C6355c59c
"#]]);

let rpc = next_http_rpc_endpoint();

// <https://etherscan.io/tx/0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c>
cmd.cast_fuse()
.args([
Expand Down Expand Up @@ -879,6 +881,8 @@ casttest!(mktx_requires_to, |_prj, cmd| {
"mktx",
"--private-key",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"--chain",
"1",
]);
cmd.assert_failure().stderr_eq(str![[r#"
Error:
Expand Down Expand Up @@ -967,6 +971,8 @@ casttest!(send_requires_to, |_prj, cmd| {
"send",
"--private-key",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"--chain",
"1",
]);
cmd.assert_failure().stderr_eq(str![[r#"
Error:
Expand Down
5 changes: 3 additions & 2 deletions crates/forge/tests/it/inline.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
//! Inline configuration tests.

use crate::test_helpers::TEST_DATA_DEFAULT;
use crate::test_helpers::{ForgeTestData, ForgeTestProfile, TEST_DATA_DEFAULT};
use forge::{result::TestKind, TestOptionsBuilder};
use foundry_config::{FuzzConfig, InvariantConfig};
use foundry_test_utils::Filter;

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

0 comments on commit 6ec15a8

Please sign in to comment.