Skip to content

Commit

Permalink
Remove unit test
Browse files Browse the repository at this point in the history
It fails to build because the node environment is not available during Rust unit tests.
  • Loading branch information
agostbiro committed Sep 10, 2024
1 parent 8b31411 commit db8b93c
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions crates/edr_napi/src/solidity_tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,47 +673,3 @@ impl Debug for AddressLabel {
.finish()
}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_fail_test_default() {
let config = SolidityTestRunnerConfigArgs {
project_root: "dummy-root".to_string(),
fs_permissions: None,
trace: None,
debug: None,
test_fail: None,
labels: None,
isolate: None,
ffi: None,
sender: None,
tx_origin: None,
initial_balance: None,
block_number: None,
chain_id: None,
gas_limit: None,
gas_price: None,
block_base_fee_per_gas: None,
block_coinbase: None,
block_timestamp: None,
block_difficulty: None,
block_gas_limit: None,
disable_block_gas_limit: None,
memory_limit: None,
eth_rpc_url: None,
fork_block_number: None,
rpc_endpoints: None,
rpc_cache_path: None,
rpc_storage_caching: None,
prompt_timeout: None,
fuzz: None,
invariant: None,
};

let config = SolidityTestRunnerConfig::try_from(config).expect("Failed to parse config");
assert!(!config.test_fail);
}
}

0 comments on commit db8b93c

Please sign in to comment.