Skip to content
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

Merged
merged 8 commits into from
Apr 3, 2024
Merged

GH-781: New Testnet Polygon Amoy #431

merged 8 commits into from
Apr 3, 2024

Conversation

bertllll
Copy link
Contributor

@bertllll bertllll commented Apr 2, 2024

No description provided.

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"
Copy link
Contributor Author

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.

Copy link
Collaborator

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")
Copy link
Collaborator

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you should.

@@ -2048,19 +2050,16 @@ mod tests {
#[test]
fn get_modified_setup_tilde_in_config_file_path() {
Copy link
Collaborator

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(
Copy link
Collaborator

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.

@@ -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(
Copy link
Collaborator

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 👍

@bertllll bertllll merged commit 60d46da into master Apr 3, 2024
6 checks passed
@bertllll bertllll deleted the GH-781 branch April 3, 2024 14:08
masqrauder pushed a commit that referenced this pull request Apr 21, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants