test: assert that run_connection_attempts tries all candidates

This commit is contained in:
link2xt
2026-07-24 16:44:50 +00:00
parent 234e491172
commit ebff8ce455

View File

@@ -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.