Skip to content

Commit

Permalink
bases index
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed May 29, 2024
1 parent 3b787d4 commit 1a4730d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@
from pytest_operator.plugin import OpsTest
from tenacity import Retrying, stop_after_delay, wait_fixed

from . import architecture
from .helpers.helpers import CLIENT_APP_NAME


@pytest.fixture(scope="module")
async def pgb_charm(ops_test: OpsTest):
"""Build the pgbouncer charm."""
return await ops_test.build_charm(".", bases_index=0)
if architecture.architecture == "amd64":
index = 0
elif architecture.architecture == "arm64":
index = 1
else:
raise ValueError(architecture.architecture)
return await ops_test.build_charm(".", bases_index=index)


@pytest.fixture
Expand Down

0 comments on commit 1a4730d

Please sign in to comment.