From 07adc9dbda2873f1f42ced0090efd5481e18456b Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 27 Aug 2021 14:59:07 +0300 Subject: [PATCH] Fix unit test for find_end_of_wal --- postgres_ffi/src/xlog_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres_ffi/src/xlog_utils.rs b/postgres_ffi/src/xlog_utils.rs index 0852c6a9fa..5989febb79 100644 --- a/postgres_ffi/src/xlog_utils.rs +++ b/postgres_ffi/src/xlog_utils.rs @@ -570,7 +570,7 @@ mod tests { let (wal_end, tli) = find_end_of_wal(&wal_dir, wal_seg_size, true); let wal_end = Lsn(wal_end); println!("wal_end={}, tli={}", wal_end, tli); - assert_eq!(wal_end, "0/2000000".parse::().unwrap()); + assert_eq!(wal_end, "0/1699D10".parse::().unwrap()); // 4. Get the actual end of WAL by pg_waldump let waldump_path = top_path.join("tmp_install/bin/pg_waldump");