From 35a1c3d521729709a7bafe47fb4a3a7bdf52ad65 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 21 May 2021 12:20:38 +0300 Subject: [PATCH] Specify right LSN in test_createdb.py --- test_runner/batch_others/test_createdb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')