-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-781: New Testnet Polygon Amoy #431
Conversation
node/Cargo.toml
Outdated
@@ -27,7 +27,7 @@ fdlimit = "0.2.1" | |||
flexi_logger = { version = "0.15.12", features = [ "ziplogs" ] } | |||
futures = "0.1.31" | |||
heck = "0.3.3" | |||
http = "0.2.5" | |||
http = "0.1.21" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I should revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you should.
} | ||
|
||
pub fn is_test_generated_data_allowed_to_escape_project_dir() -> bool { | ||
is_env_variable_set("ALLOW_TEST_DATA_ESCAPE_PROJECT_DIR", "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's pour some more ideas if we can find a way around this.
node/Cargo.toml
Outdated
@@ -27,7 +27,7 @@ fdlimit = "0.2.1" | |||
flexi_logger = { version = "0.15.12", features = [ "ziplogs" ] } | |||
futures = "0.1.31" | |||
heck = "0.3.3" | |||
http = "0.2.5" | |||
http = "0.1.21" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you should.
node/src/daemon/setup_reporter.rs
Outdated
@@ -2048,19 +2050,16 @@ mod tests { | |||
#[test] | |||
fn get_modified_setup_tilde_in_config_file_path() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm glad that you discovered this. Just my personal opinion, I'd be afraid of an application creating files in my computer outside the project directory.
A possible solution: Maybe use container provided by Docker.
@@ -1204,15 +1207,13 @@ mod tests { | |||
running_test(); | |||
let _guard = EnvironmentGuard::new(); | |||
let _clap_guard = ClapGuard::new(); | |||
let home_dir = ensure_node_home_directory_exists( | |||
let node_home_dir = ensure_node_home_directory_exists( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer home_dir
. Also, let's change the function name to also say, ensure_home_directory_exists
.
node/src/test_utils/mod.rs
Outdated
@@ -529,6 +535,35 @@ pub struct TestRawTransaction { | |||
pub data: Vec<u8>, | |||
} | |||
|
|||
pub fn make_node_base_dir_and_return_its_absolute_and_relative_path_to_os_home_dir( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mentioned that "why it still exists?". I think you'd like to remove it and change the code inside tests if it's used there. Good Luck 👍
* GH-781: experimenting with a test utility * GH-781: task might be complete now * GH-781: debugging for windows * GH-781: trying to satisfy Win * GH-781: clippy * GH-781: removed bad solution for issue that now a new card was written for * GH-781: cargo.toml change * GH-781: review answered --------- Co-authored-by: Bert <[email protected]>
No description provided.