Skip to content
Open
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
253 changes: 202 additions & 51 deletions automap/Cargo.lock

Large diffs are not rendered by default.

159 changes: 126 additions & 33 deletions dns_utility/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions masq_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ethereum-types = "0.9.0"
itertools = "0.10.1"
lazy_static = "1.4.0"
log = "0.4.8"
rand = { version = "0.9.0", features = ["thread_rng"] }
regex = "1.5.4"
serde = "1.0.133"
serde_derive = "1.0.133"
Expand Down
12 changes: 10 additions & 2 deletions masq_lib/src/test_utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ use crate::test_utils::environment_guard::EnvironmentGuard;
use serde_derive::Serialize;
use std::fs;
use std::path::{Path, PathBuf};
use std::process::Command;
use std::time::Duration;

pub const TEST_DEFAULT_CHAIN: Chain = Chain::EthRopsten;
pub const TEST_DEFAULT_CHAIN: Chain = Chain::BaseSepolia;
pub const TEST_DEFAULT_MULTINODE_CHAIN: Chain = Chain::Dev;
pub const BASE_TEST_DIR: &str = "generated/test";
const MASQ_SOURCE_CODE_UNAVAILABLE: &str = "MASQ_SOURCE_CODE_UNAVAILABLE";
Expand Down Expand Up @@ -49,6 +50,13 @@ pub fn ensure_node_home_directory_exists(module: &str, name: &str) -> PathBuf {
home_dir
}

pub fn open_all_file_permissions(dir: PathBuf) {
let _ = Command::new("chmod")
.args(&["-R", "777", dir.to_str().unwrap()])
.output()
.expect("Couldn't chmod 777 files in directory");
}

pub fn is_running_under_github_actions() -> bool {
is_env_variable_set("GITHUB_ACTIONS", "true")
}
Expand Down Expand Up @@ -109,7 +117,7 @@ mod tests {

#[test]
fn constants_have_correct_values() {
assert_eq!(TEST_DEFAULT_CHAIN, Chain::EthRopsten);
assert_eq!(TEST_DEFAULT_CHAIN, Chain::BaseSepolia);
assert_eq!(TEST_DEFAULT_MULTINODE_CHAIN, Chain::Dev);
assert_eq!(BASE_TEST_DIR, "generated/test");
}
Expand Down
Loading
Loading