Skip to content

Commit

Permalink
Allow network access from bazel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Apr 5, 2024
1 parent 9a6fd8e commit 28b06aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build:lint --config=clippy

build:ci --progress_report_interval=30

build --nosandbox_default_allow_network
build --sandbox_default_allow_network
build --incompatible_strict_action_env # use an environment with a static value for PATH and do not inherit LD_LIBRARY_PATH

# default to optimized and unstripped binaries.
Expand Down
4 changes: 1 addition & 3 deletions rs/ic-management-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,7 @@ mod tests {

#[tokio::test]
async fn test_network_new_mainnet() {
let name = "mainnet";
let nns_urls = vec![];
let network = Network::new(name, &nns_urls).await.unwrap();
let network = Network::new("mainnet", &vec![]).await.unwrap();

assert_eq!(network.name, "mainnet");
assert_eq!(network.get_nns_urls(), &vec![Url::from_str("https://ic0.app").unwrap()]);
Expand Down

0 comments on commit 28b06aa

Please sign in to comment.