Skip to content

Commit

Permalink
More id/logs debug
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Apr 2, 2024
1 parent 20ec9f2 commit 8b7d99a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration_tests/test_banning_works.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def wait_for_http(port: int, host: str = "localhost", timeout: float = 5.0):
if not isinstance(ex.args[0], ProtocolError):
print("Waiting", ex.args)
if time.perf_counter() - start_time >= timeout:
logs = subprocess.check_output(["docker-compose", "logs"])
logs = subprocess.check_output(
["docker-compose", "logs"], encoding="utf-8"
)
print("logs")
print(logs)
raise TimeoutError(
Expand All @@ -53,6 +55,8 @@ def configure_ha(allowlist: list[str]) -> None:
configuration_template = env.get_template("configuration.yaml.j2")
with config_folder.joinpath("configuration.yaml").open("w") as config_out:
config_out.write(configuration_template.render(ALLOWLIST=allowlist))

print("id", subprocess.check_output(["id"], encoding="utf-8"))
subprocess.check_call(["docker-compose", "down"])
if ban_ip_path.exists():
ban_ip_path.unlink()
Expand Down

0 comments on commit 8b7d99a

Please sign in to comment.