Skip to content

Commit

Permalink
Use random port for clickhouse
Browse files Browse the repository at this point in the history
* reformat
  • Loading branch information
hellais committed Dec 18, 2024
1 parent b22cb7a commit 3ef99c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ooniapi/services/oonimeasurements/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def override_get_settings():
@pytest.fixture
def client_with_bad_settings():
app.dependency_overrides[get_settings] = make_override_get_settings(
clickhouse_url = "clickhouse://badhost:9000"
clickhouse_url="clickhouse://badhost:9000"
)

client = TestClient(app)
Expand All @@ -89,9 +89,9 @@ def client(db):
clickhouse_url=db,
jwt_encryption_key="super_secure",
prometheus_metrics_password="super_secure",
account_id_hashing_key="super_secure"
account_id_hashing_key="super_secure",
)

client = TestClient(app)
yield client

Expand Down
2 changes: 1 addition & 1 deletion ooniapi/services/oonimeasurements/tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ services:
clickhouse:
image: "clickhouse/clickhouse-server"
ports:
- "9000:9000"
- "9000"

0 comments on commit 3ef99c6

Please sign in to comment.