From 3c3b53f8adaae86c36e5879c2dcb27be91343342 Mon Sep 17 00:00:00 2001 From: Sasha Krassovsky Date: Thu, 4 Jan 2024 11:15:53 -0800 Subject: [PATCH] Update test --- test_runner/regress/test_migrations.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test_runner/regress/test_migrations.py b/test_runner/regress/test_migrations.py index ab05ef1e86..885f355f0c 100644 --- a/test_runner/regress/test_migrations.py +++ b/test_runner/regress/test_migrations.py @@ -9,19 +9,19 @@ def test_migrations(neon_simple_env: NeonEnv): endpoint.start() with endpoint.cursor() as cur: - cur.execute("SELECT last_value FROM neon_migration.migration_id") + cur.execute("SELECT id FROM neon_migration.migration_id") migration_id = cur.fetchall() - assert migration_id[0][0] == 2 + assert migration_id[0][0] == 1 endpoint.stop() endpoint.start() with endpoint.cursor() as cur: - cur.execute("SELECT last_value FROM neon_migration.migration_id") + cur.execute("SELECT id FROM neon_migration.migration_id") migration_id = cur.fetchall() - assert migration_id[0][0] == 2 + assert migration_id[0][0] == 1 log_path = endpoint.endpoint_path() / "compute.log" with open(log_path, "r") as log_file: logs = log_file.read() - assert "INFO start_compute:apply_config:handle_migrations: Ran 2 migrations" in logs + assert "INFO start_compute:apply_config:handle_migrations: Ran 1 migrations" in logs assert "INFO start_compute:apply_config:handle_migrations: Ran 0 migrations" in logs