mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 06:48:52 -06:00
fix: let core.upstream refuse requests offline
RETROBIOS_OFFLINE was read by six callers and never by the network gateway: a caller that did not pass offline=True sent the request, untokened. core.offline holds the rule, open_retrying refuses with OfflineError and the cached reads answer as an offline run. The callers read the same predicate, and the tests that fake the network clear the variable for themselves (tests.ONLINE).
This commit is contained in:
1 parent
409cc843f9
commit
83e810d1b3
23 files changed
+124
-17
No files matched your search
@@ -49,6 +49,7 @@ class _Response(io.BytesIO):
|
||||
return False
|
||||
|
||||
|
||||
@tests.ONLINE
|
||||
class RefreshConcurrency(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.tmp = tempfile.TemporaryDirectory()
|
||||
@@ -412,6 +413,7 @@ class ASourceThatMovesIsPinnedOrFollowed(unittest.TestCase):
|
||||
self.assertIn("{version}", entry["source_path"])
|
||||
|
||||
|
||||
@tests.ONLINE
|
||||
class TheRemoteCommitComesFromTheForgeClient(unittest.TestCase):
|
||||
"""get_remote_sha read a GitLab subgroup as its first two segments,
|
||||
asked the branches endpoint (no tag, no encoded name), sent the token to
|
||||
|
||||
Reference in new issue
Block a user