Skip to content

Commit

Permalink
Add xfail on flaky test (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice authored Dec 18, 2024
1 parent 4ffdbaa commit 0872ed0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/utils/test_compute_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import pytest
import pytest_asyncio

import milatools.cli.utils
from milatools.cli.utils import removesuffix
from milatools.utils.compute_node import (
ComputeNode,
Expand Down Expand Up @@ -236,6 +237,14 @@ async def test_connect_with_job_id(self, runner: ComputeNode):
# equality check succeeds
assert compute_node_with_jobid == runner

@pytest.mark.xfail(
raises=milatools.cli.utils.MilatoolsUserError,
reason=(
"milatools.cli.utils.MilatoolsUserError: You have more than one job "
"running on node cn-f003: [5787258, 5787250]. please use the `--job` flag "
"to specify which job to connect to."
),
)
@pytest.mark.asyncio
async def test_connect_with_node_name(self, runner: ComputeNode):
"""Test connecting to a compute node using the node name.
Expand Down

0 comments on commit 0872ed0

Please sign in to comment.