Skip to content

Commit 5c33804

Browse files
author
“ramfox”
committed
fix logging in test
1 parent d1d6397 commit 5c33804

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

iroh/tests/integration.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,15 @@ const ECHO_ALPN: &[u8] = b"echo";
3333

3434
#[test]
3535
async fn simple_node_id_based_connection_transfer_loop() -> Result {
36+
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
37+
setup_logging();
3638
for _ in 0..10 {
3739
simple_node_id_based_connection_transfer().await?;
3840
}
3941
Ok(())
4042
}
4143

4244
async fn simple_node_id_based_connection_transfer() -> Result {
43-
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
44-
setup_logging();
45-
4645
let client = Endpoint::builder()
4746
.relay_mode(RelayMode::Staging)
4847
.discovery_n0()

0 commit comments

Comments
 (0)