Skip to content

Commit f2a2470

Browse files
authored
Make Servers Stop Rejecting Requests (#599)
* Tests passing * Removed dead code * Moved test back where it belongs * Formatting * Finished TEST_DEFAULT_CHAIN update * More BaseSepolia stuff * Corrected host and port detection in protocol packs; about to make ports non-optional * Abandoning this approach; will revert, but wanted to preserve * Revert "More BaseSepolia stuff" This reverts commit 10735ad. * Everything's compiling now * Interim commit * Fixed the protocol pack * Review issues
1 parent e5b347b commit f2a2470

File tree

32 files changed

+907
-403
lines changed

32 files changed

+907
-403
lines changed

automap/Cargo.lock

Lines changed: 202 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dns_utility/Cargo.lock

Lines changed: 126 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

masq_lib/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ethereum-types = "0.9.0"
1717
itertools = "0.10.1"
1818
lazy_static = "1.4.0"
1919
log = "0.4.8"
20+
rand = { version = "0.9.0", features = ["thread_rng"] }
2021
regex = "1.5.4"
2122
serde = "1.0.133"
2223
serde_derive = "1.0.133"

masq_lib/src/test_utils/utils.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ use crate::test_utils::environment_guard::EnvironmentGuard;
55
use serde_derive::Serialize;
66
use std::fs;
77
use std::path::{Path, PathBuf};
8+
use std::process::Command;
89
use std::time::Duration;
910

10-
pub const TEST_DEFAULT_CHAIN: Chain = Chain::EthRopsten;
11+
pub const TEST_DEFAULT_CHAIN: Chain = Chain::BaseSepolia;
1112
pub const TEST_DEFAULT_MULTINODE_CHAIN: Chain = Chain::Dev;
1213
pub const BASE_TEST_DIR: &str = "generated/test";
1314
const MASQ_SOURCE_CODE_UNAVAILABLE: &str = "MASQ_SOURCE_CODE_UNAVAILABLE";
@@ -49,6 +50,13 @@ pub fn ensure_node_home_directory_exists(module: &str, name: &str) -> PathBuf {
4950
home_dir
5051
}
5152

53+
pub fn open_all_file_permissions(dir: PathBuf) {
54+
let _ = Command::new("chmod")
55+
.args(&["-R", "777", dir.to_str().unwrap()])
56+
.output()
57+
.expect("Couldn't chmod 777 files in directory");
58+
}
59+
5260
pub fn is_running_under_github_actions() -> bool {
5361
is_env_variable_set("GITHUB_ACTIONS", "true")
5462
}
@@ -109,7 +117,7 @@ mod tests {
109117

110118
#[test]
111119
fn constants_have_correct_values() {
112-
assert_eq!(TEST_DEFAULT_CHAIN, Chain::EthRopsten);
120+
assert_eq!(TEST_DEFAULT_CHAIN, Chain::BaseSepolia);
113121
assert_eq!(TEST_DEFAULT_MULTINODE_CHAIN, Chain::Dev);
114122
assert_eq!(BASE_TEST_DIR, "generated/test");
115123
}

0 commit comments

Comments
 (0)