mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 00:27:20 -05:00
fix: let any refusal confirm a declared dead forge
citron's taken domain now resolves to an unrelated host that fails TLS, so the pass reported an upstream error where the profile already states the forge is gone. Any forge error now agrees with upstream_gone; a rate limit still does not.
This commit is contained in:
1 parent
8f5b715c75
commit
32633c4e5c
2 files changed
+14
-1
No files matched your search
@@ -1840,6 +1840,15 @@ class TestDeclaredDeadUpstream(TestBuildReport):
|
||||
self.assertIn("withdrawn, HTTP 451", report.skipped)
|
||||
self.assertEqual(report.needs_review(), 0)
|
||||
|
||||
def test_any_refusal_of_a_declared_dead_forge_agrees(self):
|
||||
# citron's taken domain now resolves and fails TLS.
|
||||
def tls(*a, **k):
|
||||
raise profile_sync.upstream.UpstreamError("TLSV1_UNRECOGNIZED_NAME")
|
||||
|
||||
profile_sync.upstream.resolve_head = tls
|
||||
report = build_report("test", self._profile_with("domain taken"), self.dir)
|
||||
self.assertIn("declared", report.skipped)
|
||||
|
||||
def test_a_declaration_the_forge_contradicts_is_reported(self):
|
||||
"""The forge answered: the declaration has outlived its truth."""
|
||||
self.files[("pinsha", "a.c")] = ["hit"]
|
||||
|
||||
Reference in new issue
Block a user