mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 23:12:54 +00:00
Fix test
This commit is contained in:
committed by
Sasha Krassovsky
parent
55aede2762
commit
27587e155d
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user