Skip to content

Commit 1305343

Browse files
authored
Merge pull request #7522 from opsmill/pog-mark-websocket-test-for-failure
Allow flaky websocket test to fail
2 parents 6faa1ef + 9f39550 commit 1305343

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

backend/tests/unit/graphql/test_app.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88

99

1010
@pytest.fixture
11-
def client(nats, redis):
11+
def client(nats: dict[int, int] | None, redis: dict[int, int] | None) -> TestClient:
1212
# In order to mock some methods later we can't load app by default because it will automatically load all import in main.py as well
1313
from infrahub.server import app
1414

1515
return TestClient(app)
1616

1717

18-
async def test_websocket(db: InfrahubDatabase, client: TestClient, default_branch: Branch, register_core_models_schema):
18+
@pytest.mark.xfail(reason="This test is flaky, disabling as we hardly use the GraphQL subscriptions at this time.")
19+
async def test_websocket(
20+
db: InfrahubDatabase, client: TestClient, default_branch: Branch, register_core_models_schema: None
21+
) -> None:
1922
t2 = await Node.init(db=db, schema=InfrahubKind.TAG, branch=default_branch)
2023
await t2.new(db=db, name="Red", description="The Red tag")
2124
await t2.save(db=db)

0 commit comments

Comments
 (0)