Skip to content

Commit

Permalink
tests: reduce amount of nginx re-starts
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed Dec 6, 2023
1 parent 777bb84 commit fea35fa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def span_list(http_ver, spans):
scope="module",
)
@pytest.mark.usefixtures("otelcollector", "nginx")
class TestOTel:
class TestOTelGenerateSpans:
@pytest.mark.parametrize(
"url, headers, response",
[
Expand Down Expand Up @@ -406,7 +406,14 @@ async def test_do_requests(self, http_ver, logger, url, headers, response):
assert r.status_code == 200
assert r.text == response

@pytest.mark.depends(on=["test_do_requests"])

@pytest.mark.parametrize("http_ver", [1, 2, 3], ids=["https", "http2", "quic"])
class TestOTelSpans:
async def test_wait_for_last_batch(self, http_ver):
if http_ver == 3:
await asyncio.sleep(5)

@pytest.mark.depends(on=["test_wait_for_last_batch"])
@pytest.mark.parametrize(
"batch, size",
[(0, 10), (1, 10), (2, 10)],
Expand Down

0 comments on commit fea35fa

Please sign in to comment.