Specify right LSN in test_createdb.py

This commit is contained in:
Konstantin Knizhnik
2021-05-21 12:20:38 +03:00
parent 22b7e74c83
commit 35a1c3d521

View File

@@ -22,10 +22,13 @@ def test_createdb(zenith_cli, pageserver, postgres, pg_bin):
cur.execute('CREATE DATABASE foodb');
cur.execute('SELECT pg_current_wal_insert_lsn()');
lsn = cur.fetchone()[0]
conn.close();
# Create a branch
zenith_cli.run(["branch", "test_createdb2", "test_createdb"]);
zenith_cli.run(["branch", "test_createdb2", "test_createdb@"+lsn]);
pg2 = postgres.create_start('test_createdb2')