tests: the far-away gateway family, the whole UDP chain by name and the slow DoH run in the wall_clock lane

This commit is contained in:
feder-cr committed 2026-11-22 20:37:58 +01:00
1 parent 174f7a9a7f
commit 048340176b
3 files changed
+9

No files matched your search

+1
View File
@@ -112,6 +112,7 @@ def _only_the_doh_road_was_used(doh, gw, watcher):
% (", ".join(DOH_ADDRESSES), watcher.describe()))
@pytest.mark.wall_clock # the DoH answers 2 s late and the product gives up a lookup on its own time budget: a verdict that reads the wall clock
def test_a_slow_doh_still_resolves_the_name_of_a_proxied_context(firefox_binary, doh, pages, gateway, watcher,
record_property):
"""`slow-a.test` is known only to the FakeDoh, which answers it 2 s after the query. The page of a context with a
@@ -98,11 +98,13 @@ def gateway_on_loopback(monkeypatch):
yield chain
@pytest.mark.wall_clock # a chain 130 ms away, and the core's UDP measurement of it has a fixed budget: a verdict that reads the wall clock
def test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick(gateway, firefox_binary, engine_at_least):
"""The exit of the lab is an address that is not loopback, and no pref: the product's own setting (Linux, root)."""
_walk(gateway, firefox_binary, engine_at_least, PREFS)
@pytest.mark.wall_clock
def test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback(gateway_on_loopback, firefox_binary,
engine_at_least):
"""The exit of the lab is 127.0.0.2 and the ICE context allows loopback (the pref): the same walk on every system, Windows too."""
+6
View File
@@ -961,7 +961,11 @@ def test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay(monkeypatch):
assert took_the_relay, "the page's STUN request did not take the relay. " + verdict
# The distance of the gateway is a sleep of the lab, and the core measures the UDP road of the proxy with a fixed budget (3 s): on a runner with no CPU
# left the lab's threads are scheduled late and the measurement ends before the answers do (run 45058944650). A verdict that reads the wall clock
# runs in the lane that gives the test the whole machine, after the parallel tests.
@pytest.mark.e2e
@pytest.mark.wall_clock
@pytest.mark.parametrize("rtt_ms", [80, 150, 250])
@pytest.mark.parametrize("ice_prefs", _ICE_PREFS, ids=_ICE_IDS)
@pytest.mark.usefixtures("the_udp_line")
@@ -1009,6 +1013,7 @@ _START_A_GATHER_JS = r"""async (stun) => {
@pytest.mark.e2e
@pytest.mark.wall_clock
@pytest.mark.parametrize("ice_prefs", _ICE_PREFS, ids=_ICE_IDS)
@pytest.mark.usefixtures("the_udp_line")
def test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away(monkeypatch, ice_prefs):
@@ -1057,6 +1062,7 @@ def test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far
@pytest.mark.e2e
@pytest.mark.wall_clock
@pytest.mark.usefixtures("the_udp_line")
def test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server(monkeypatch):
"""⛔ THE KNOWN-BAD INPUT: a gateway 250 ms away, a page loaded through it, and a while later the page asks for WebRTC.