From 26f482867130be1bca82a0d696253a4ab68f6ef5 Mon Sep 17 00:00:00 2001 From: Bryan Ciaraldi Date: Mon, 7 Oct 2024 16:14:06 -0700 Subject: [PATCH] update tests to include clickhouse service name --- bin/e2e-test-runner | 4 ++-- bin/start | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/e2e-test-runner b/bin/e2e-test-runner index da768f6fce3a7..56db46c1f2c3a 100755 --- a/bin/e2e-test-runner +++ b/bin/e2e-test-runner @@ -77,8 +77,8 @@ recreateDatabases() { createdb $DATABASE # Delete and recreate clickhouse database - echo 'DROP DATABASE if exists posthog_test' | curl 'http://localhost:8123/' --data-binary @- - echo 'create database posthog_test' | curl 'http://localhost:8123/' --data-binary @- + echo 'DROP DATABASE if exists posthog_test' | curl 'http://clickhouse:8123/' --data-binary @- + echo 'create database posthog_test' | curl 'http://clickhouse:8123/' --data-binary @- } migrateDatabases() { diff --git a/bin/start b/bin/start index 171656ed0e3ec..6ab87d46b2e30 100755 --- a/bin/start +++ b/bin/start @@ -14,7 +14,7 @@ service_warning() { } nc -z localhost 9092 || ( service_warning 'Kafka'; bin/check_kafka_clickhouse_up ) -curl -s 'http://localhost:8123/ping' || ( service_warning 'ClickHouse'; bin/check_kafka_clickhouse_up ) +curl -s 'http://clickhouse:8123/ping' || ( service_warning 'ClickHouse'; bin/check_kafka_clickhouse_up ) [ ! -f ./share/GeoLite2-City.mmdb ] && ( curl -L "https://mmdbcdn.posthog.net/" --http1.1 | brotli --decompress --output=./share/GeoLite2-City.mmdb )