mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 07:33:45 -06:00
fix: count the tries a stalled list server gets
This commit is contained in:
1 parent
831e187f84
commit
c3978ec467
2 files changed
+10
-1
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user