From b29e09d3fd30ee4e4063b186d8a9d601b3e8701c Mon Sep 17 00:00:00 2001 From: Erin Power Date: Wed, 24 May 2023 09:30:38 +0200 Subject: [PATCH] use random port in test --- tests/qcmp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qcmp.rs b/tests/qcmp.rs index 92aee8bb35..ff617a3823 100644 --- a/tests/qcmp.rs +++ b/tests/qcmp.rs @@ -23,7 +23,7 @@ use quilkin::{protocol::Protocol, test_utils::TestHelper}; #[tokio::test] async fn proxy_ping() { let mut t = TestHelper::default(); - let server_port = 12348; + let server_port = quilkin::test_utils::available_addr().await.port(); let server_proxy = quilkin::cli::Proxy { port: server_port, to: vec![(Ipv4Addr::UNSPECIFIED, 0).into()],