From 26b061527fd04d234718e528319dc59afa8515b9 Mon Sep 17 00:00:00 2001 From: VVVi <728466-viktorv@users.noreply.gitlab.com> Date: Sat, 14 Sep 2024 16:16:10 +0200 Subject: [PATCH] chore: improve tests --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 37a47a8..446bcab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -78,15 +78,15 @@ jobs: - name: Verify Migration run: | echo "Checking if tables exist..." - response=$(curl -s "http://localhost:8123/?query=SELECT%20groupArray(name)%20FROM%20system.tables%20WHERE%20name%20IN%20('events','sessions')") + response=$(curl -s "http://localhost:8123/?query=SELECT%20groupArray(name)%20FROM%20system.tables%20WHERE%20name%20IN%20('_migrations','events','sessions')%20AND%20database%20=%20'analytics'") echo "Response: $response" - expected_tables="['events','sessions']" + expected_tables="['_migrations','events','sessions']" if [ "$response" = "$expected_tables" ]; then echo "The tables were created successfully." else - echo "One or more tables were not found!" + echo "Tables were not found!" echo "Expected: $expected_tables" echo "Got: $response" exit 1