diff --git a/test_runner/batch_others/test_createdb.py b/test_runner/batch_others/test_createdb.py index f856585067..2447effa7f 100644 --- a/test_runner/batch_others/test_createdb.py +++ b/test_runner/batch_others/test_createdb.py @@ -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')