fix: count the tries a stalled list server gets

This commit is contained in:
Abdessamad Derraz committed 2026-10-24 04:08:28 +02:00
1 parent 831e187f84
commit c3978ec467
2 files changed
+10 -1

No files matched your search

+4
View File
@@ -2411,6 +2411,10 @@ class ASilentServerIsBounded(unittest.TestCase):
self.assertLess(elapsed, 5)
self.assertEqual(len(held), install.STALLED_ATTEMPTS)
self.assertIn(f"after {install.STALLED_ATTEMPTS} attempts", err.getvalue())
# The retry line counts the tries this failure gets: "(2/3)" promised
# a third that never came.
self.assertIn(f"(2/{install.STALLED_ATTEMPTS})", err.getvalue())
self.assertNotIn(f"/{install.MAX_RETRIES})", err.getvalue())
# A download keeps its own, longer wait between chunks.
self.assertGreater(install.LIST_TIMEOUT, 1)