Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fb57f40

Browse files
committed
Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
If a test case tried to set an invalid value of synchronous_standby_names, the test script didn't detect that, which seems like a bad idea. Noticed while testing a proposed patch that broke some of these test cases.
1 parent ee32782 commit fb57f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/007_sync_rep.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sub test_sync_state
1818

1919
if (defined($setting))
2020
{
21-
$self->psql('postgres',
21+
$self->safe_psql('postgres',
2222
"ALTER SYSTEM SET synchronous_standby_names = '$setting';");
2323
$self->reload;
2424
}

0 commit comments

Comments
 (0)