Skip to content

Commit

Permalink
update tests to include clickhouse service name
Browse files Browse the repository at this point in the history
  • Loading branch information
bciaraldi committed Oct 7, 2024
1 parent 0fb6b3d commit 26f4828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/e2e-test-runner
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

Expand Down

0 comments on commit 26f4828

Please sign in to comment.