Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhaliaw committed Jan 2, 2024
1 parent 133d4da commit 6392b1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ def _on_start(self, _event: StartEvent) -> None:
Args:
event: Event of starting the charm.
"""
self._check_and_update_dependencies()

runner_manager = self._get_runner_manager()

self.unit.status = MaintenanceStatus("Starting runners")
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_charm_with_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def app_with_aproxy_fixture(

@pytest.mark.asyncio
@pytest.mark.abort_on_fail
async def test_usage_of_aproxy(model: Model, app_with_aproxy: Application, proxy: str) -> None:
async def test_usage_of_aproxy(model: Model, app_with_aproxy: Application) -> None:
"""
arrange: A working application with one runner using aproxy configured for a proxy server.
act: Run curl in the runner.
Expand All @@ -142,8 +142,8 @@ async def test_usage_of_aproxy(model: Model, app_with_aproxy: Application, proxy
unit,
runner_name,
"curl http://canonical.com",
env={"http_proxy": proxy, "https_proxy": proxy},
)

assert return_code == 0

return_code, stdout = await run_in_lxd_instance(
Expand Down

0 comments on commit 6392b1f

Please sign in to comment.