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

test(net): use actual derp hostname and reduce iteration count #1886

Merged
merged 1 commit into from
Dec 13, 2023
Merged
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
9 changes: 6 additions & 3 deletions iroh-net/src/netcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ mod tests {
use tokio::time;
use tracing::info;

use crate::defaults::DEFAULT_DERP_STUN_PORT;
use crate::defaults::{DEFAULT_DERP_STUN_PORT, EU_DERP_HOSTNAME};
use crate::derp::{DerpNode, DerpRegion, UseIpv4, UseIpv6};
use crate::net::IpFamily;
use crate::ping::Pinger;
Expand Down Expand Up @@ -889,7 +889,10 @@ mod tests {

let mut client = Client::new(None).context("failed to create netcheck client")?;

let stun_servers = vec![("https://derp.iroh.network.", DEFAULT_DERP_STUN_PORT)];
let stun_servers = vec![(
format!("https://{}", EU_DERP_HOSTNAME),
DEFAULT_DERP_STUN_PORT,
)];

let region_id = 1;
let dm = DerpMap::from_regions([DerpRegion {
Expand All @@ -913,7 +916,7 @@ mod tests {
}])
.expect("hardcoded");

for i in 0..100 {
for i in 0..10 {
println!("starting report {}", i + 1);
let now = Instant::now();

Expand Down