Content-Length: 260831 | pFad | http://github.com/postgrespro/postgres/commit/24ba1a87e4056ec34c8a685633a1a14fb89e5700

EF Simplify matching pattern check in TAP tests of pg_receivewal · postgrespro/postgres@24ba1a8 · GitHub
Skip to content

Commit 24ba1a8

Browse files
committed
Simplify matching pattern check in TAP tests of pg_receivewal
A check in the ZLIB portion of the test to match the name of a non-compressed partial segment with a completed compressed segment was using m//, while a simple equality check is enough. This makes the test a bit stricter without impacting its coverage. Author: Kyotaro Horiguchi Discussion: https://postgr.es/m/20210726.174622.826565852378770261.horikyota.ntt@gmail.com
1 parent f7a9a3d commit 24ba1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/t/020_pg_receivewal.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
# of the previous partial, now-completed WAL segment is updated, keeping
112112
# its base number.
113113
$partial_wals[0] =~ s/\.partial$/.gz/;
114-
is($zlib_wals[0] =~ m/$partial_wals[0]/,
114+
is($zlib_wals[0] eq $partial_wals[0],
115115
1, "one partial WAL segment is now completed");
116116
# Update the list of partial wals with the current one.
117117
@partial_wals = @zlib_partial_wals;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/24ba1a87e4056ec34c8a685633a1a14fb89e5700

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy