Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/forge/tests/it/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ async fn test_trace() {

assert_eq!(
deployment_traces.count(),
13,
"Test {test_name} did not have exactly 13 deployment trace."
14,
"Test {test_name} did not have exactly 14 deployment traces."
);
assert!(setup_traces.count() <= 1, "Test {test_name} had more than 1 setup trace.");
assert_eq!(
Expand Down
6 changes: 3 additions & 3 deletions crates/forge/tests/it/repros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ test_repro!(8004);

// https://github.com/foundry-rs/foundry/issues/2851
test_repro!(2851, false, None, |res| {
let mut res = res.remove("default/repros/Issue2851.t.sol:Issue2851Test").unwrap();
let test = res.test_results.remove("invariantNotZero()").unwrap();
assert_eq!(test.status, TestStatus::Failure);
let mut suite_result = res.remove("default/repros/Issue2851.t.sol:Issue2851Test").unwrap();
let tr = suite_result.test_results.remove("invariantNotZero()").unwrap();
assert_eq!(tr.status, TestStatus::Failure, "{tr}");
});

// https://github.com/foundry-rs/foundry/issues/8006
Expand Down
11 changes: 2 additions & 9 deletions crates/forge/tests/it/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use forge::{MultiContractRunner, MultiContractRunnerBuilder};
use foundry_cli::utils::install_crypto_provider;
use foundry_compilers::{
Project, ProjectCompileOutput, SolcConfig,
artifacts::{EvmVersion, Libraries, Settings},
artifacts::{EvmVersion, Settings},
compilers::multi::MultiCompiler,
};
use foundry_config::{
Expand Down Expand Up @@ -58,11 +58,7 @@ impl ForgeTestProfile {

/// Configures the solc settings for the test profile.
pub fn solc_config(&self) -> SolcConfig {
let libs =
["fork/Fork.t.sol:DssExecLib:0xfD88CeE74f7D78697775aBDAE53f9Da1559728E4".to_string()];

let mut settings =
Settings { libraries: Libraries::parse(&libs).unwrap(), ..Default::default() };
let mut settings = Settings::default();

if matches!(self, Self::Paris) {
settings.evm_version = Some(EvmVersion::Paris);
Expand All @@ -86,9 +82,6 @@ impl ForgeTestProfile {
config.src = self.root().join(self.to_string());
config.out = self.root().join("out").join(self.to_string());
config.cache_path = self.root().join("cache").join(self.to_string());
config.libraries = vec![
"fork/Fork.t.sol:DssExecLib:0xfD88CeE74f7D78697775aBDAE53f9Da1559728E4".to_string(),
];

config.prompt_timeout = 0;

Expand Down
Loading