Skip to content

Commit f6dc340

Browse files
author
Sofia Kopikova
committed
Fix LSN formatting in expected test message
1 parent 34b82f2 commit f6dc340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/001_basic.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ BEGIN
119119
my $init_lsn = $node->safe_psql("postgres", "SELECT ptrack_init_lsn()");
120120
like(
121121
$init_lsn,
122-
qr/0\/[0-9][0-9]+/,
122+
qr/0\/[0-9A-F][0-9A-F]+/,
123123
'ptrack init LSN should not be 0/0 after CHECKPOINT');
124124

125125
# Ptrack map should survive crash
@@ -163,7 +163,7 @@ BEGIN
163163
$res_stdout = $node->safe_psql("postgres", "SELECT ptrack_init_lsn()");
164164
like(
165165
$res_stdout,
166-
qr/0\/[0-9][0-9]+/,
166+
qr/0\/[0-9A-F][0-9A-F]+/,
167167
'ptrack init LSN should not be 0/0 after CHECKPOINT');
168168
ok($res_stdout ne $init_lsn, 'ptrack init_lsn should not be the same after map resize');
169169
$res_stdout = $node->safe_psql("postgres", "SELECT ptrack_get_pagemapset('$flush_lsn')");

0 commit comments

Comments
 (0)