aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-07-27 10:58:21 +0900
committerMichael Paquier <michael@paquier.xyz>2021-07-27 10:58:21 +0900
commit24ba1a87e4056ec34c8a685633a1a14fb89e5700 (patch)
treefed753b3c839abb3d4285a38c6460b171ffd7ad2 /src
parentf7a9a3d4b24a4ad0de7992f01a0dd2a02ccd30a4 (diff)
downloadpostgresql-24ba1a87e4056ec34c8a685633a1a14fb89e5700.tar.gz
postgresql-24ba1a87e4056ec34c8a685633a1a14fb89e5700.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_basebackup/t/020_pg_receivewal.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/t/020_pg_receivewal.pl b/src/bin/pg_basebackup/t/020_pg_receivewal.pl
index 47c4ecb073b..950083d21c8 100644
--- a/src/bin/pg_basebackup/t/020_pg_receivewal.pl
+++ b/src/bin/pg_basebackup/t/020_pg_receivewal.pl
@@ -111,7 +111,7 @@ SKIP:
# of the previous partial, now-completed WAL segment is updated, keeping
# its base number.
$partial_wals[0] =~ s/\.partial$/.gz/;
- is($zlib_wals[0] =~ m/$partial_wals[0]/,
+ is($zlib_wals[0] eq $partial_wals[0],
1, "one partial WAL segment is now completed");
# Update the list of partial wals with the current one.
@partial_wals = @zlib_partial_wals;