Skip to content

Commit

Permalink
Run on CI with updated dns
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasan6979 committed Jan 31, 2025
1 parent 630c023 commit b0a6a96
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions nat-lab/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ async def on_output(output: str) -> None:
await connection.create_process(cmd).execute(on_output, on_output)


def pytest_collection_modifyitems(items):
skip_non_asyncio = pytest.mark.skip(reason="Skipping non-dns test")
for item in items:
if "dns" not in item.keywords:
item.add_marker(skip_non_asyncio)
# def pytest_collection_modifyitems(items):
# skip_non_asyncio = pytest.mark.skip(reason="Skipping non-dns test")
# for item in items:
# if "dns" not in item.keywords:
# item.add_marker(skip_non_asyncio)


@pytest.fixture(autouse=True)
Expand Down
6 changes: 3 additions & 3 deletions nat-lab/tests/test_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def get_dns_server_address(ip_stack: IPStack) -> str:
)


@pytest.mark.repeat(50)
@pytest.mark.dns
@pytest.mark.asyncio
@pytest.mark.parametrize(
"alpha_ip_stack",
[
Expand Down Expand Up @@ -155,7 +154,8 @@ async def test_dns(
)


@pytest.mark.dns
@pytest.mark.repeat(50)
@pytest.mark.asyncio
@pytest.mark.parametrize(
"alpha_ip_stack",
[
Expand Down

0 comments on commit b0a6a96

Please sign in to comment.