Skip to content

Commit

Permalink
🔧 add skipif on preemptive http3 tests if qh3 unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Dec 23, 2024
1 parent 6ad8cd1 commit 6d09f22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def callback_on_early(early_resp) -> None:
assert resp.status_code == 200
assert received_early_response is True

@pytest.mark.skipif(qh3 is None, reason="qh3 unavailable")
def test_preemptive_add_http3_domain(self) -> None:
with Session() as s:
s.quic_cache_layer.add_domain("one.one.one.one")
Expand All @@ -137,6 +138,7 @@ def test_preemptive_add_http3_domain(self) -> None:

assert resp.http_version == 30

@pytest.mark.skipif(qh3 is None, reason="qh3 unavailable")
def test_preemptive_add_http3_domain_wrong_port(self) -> None:
with Session() as s:
s.quic_cache_layer.add_domain("one.one.one.one", 6666)
Expand All @@ -145,6 +147,7 @@ def test_preemptive_add_http3_domain_wrong_port(self) -> None:

assert resp.http_version == 20

@pytest.mark.skipif(qh3 is None, reason="qh3 unavailable")
def test_preemptive_exclude_http3_domain(self) -> None:
with Session() as s:
s.quic_cache_layer.exclude_domain("one.one.one.one")
Expand Down

0 comments on commit 6d09f22

Please sign in to comment.