From ebff8ce455ea1054db127b5b556bed992f9c18ad Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 24 Jul 2026 16:44:50 +0000 Subject: [PATCH] test: assert that run_connection_attempts tries all candidates --- src/net.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net.rs b/src/net.rs index 01cf1c03c..d7ba94790 100644 --- a/src/net.rs +++ b/src/net.rs @@ -209,6 +209,9 @@ where } } None => { + // We should never return an error with connection attempts left to try. + debug_assert!(futures.next().is_none()); + // Out of connection attempts. // // Break out of the loop and return error.