git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 884d791)
Adjust recently added test for pg_signal_autovacuum role
2024年7月16日 14:05:48 +0000 (10:05 -0400)
2024年7月16日 14:05:48 +0000 (10:05 -0400)
This test was added by commit d2b74882ca, but fails if
log_error_verbosity is set to verbose. Adjust the regex that checks the
error message to allow for it containing an SQL status code.


diff --git a/src/test/modules/test_misc/t/006_signal_autovacuum.pl b/src/test/modules/test_misc/t/006_signal_autovacuum.pl
index f37f8ff776d270028c8990bbfa091ef032060f6c..51bdefe24aaa5fb74e66e96ad4504164bdc85127 100644 (file)
--- a/src/test/modules/test_misc/t/006_signal_autovacuum.pl
+++ b/src/test/modules/test_misc/t/006_signal_autovacuum.pl
@@ -84,7 +84,7 @@ $node->poll_query_until('postgres',
# Check that the primary server logs a FATAL indicating that autovacuum
# is terminated.
ok( $node->log_contains(
- qr/FATAL: terminating autovacuum process due to administrator command/,
+ qr/FATAL: .*terminating autovacuum process due to administrator command/,
$offset),
"autovacuum worker signaled with pg_signal_autovacuum_worker granted");
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /