Skip to content

Commit

Permalink
make override_snap_on_k8s an async fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Nov 21, 2024
1 parent 644d003 commit 9860d25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/test_k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import asyncio
import logging
import pytest_asyncio
from pathlib import Path

import pytest
Expand Down Expand Up @@ -139,7 +140,7 @@ async def test_remove_leader_control_plane(kubernetes_cluster: model.Model):
await ready_nodes(follower, expected_nodes)


@pytest.fixture
@pytest_asyncio.fixture()
async def override_snap_on_k8s(kubernetes_cluster: model.Model, request):
"""
Override the snap resource on a Kubernetes cluster application and revert it after the test.
Expand Down

0 comments on commit 9860d25

Please sign in to comment.