From 27587e155d232259573e565b83aefb6d7ea1bfa0 Mon Sep 17 00:00:00 2001 From: Sasha Krassovsky Date: Tue, 9 Jan 2024 16:59:47 -0800 Subject: [PATCH] Fix test --- compute_tools/src/spec.rs | 1 + test_runner/regress/test_migrations.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compute_tools/src/spec.rs b/compute_tools/src/spec.rs index 23a63c4f95..e87dc0b732 100644 --- a/compute_tools/src/spec.rs +++ b/compute_tools/src/spec.rs @@ -784,6 +784,7 @@ END $$; client.simple_query(query)?; while current_migration < migrations.len() { + info!("Running migration:\n{}\n", migrations[current_migration]); client.simple_query(migrations[current_migration])?; current_migration += 1; } diff --git a/test_runner/regress/test_migrations.py b/test_runner/regress/test_migrations.py index dc6d695e94..44613db9e1 100644 --- a/test_runner/regress/test_migrations.py +++ b/test_runner/regress/test_migrations.py @@ -14,7 +14,7 @@ def test_migrations(neon_simple_env: NeonEnv): with endpoint.cursor() as cur: cur.execute("SELECT id FROM neon_migration.migration_id") migration_id = cur.fetchall() - assert migration_id[0][0] == 1 + assert migration_id[0][0] == 2 endpoint.stop() endpoint.start() @@ -22,7 +22,7 @@ def test_migrations(neon_simple_env: NeonEnv): with endpoint.cursor() as cur: cur.execute("SELECT id FROM neon_migration.migration_id") migration_id = cur.fetchall() - assert migration_id[0][0] == 1 + assert migration_id[0][0] == 2 log_path = endpoint.endpoint_path() / "compute.log" with open(log_path, "r") as log_file: