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

Commit d6f6f0f

Browse files
committed
Allow for yet another crash symptom in 013_crash_restart.pl.
Given the right timing, psql could emit "connection to server was lost" rather than one of the other messages that this test script checked for. It looks like commit 4247db6 may have made this more likely, but I don't really believe it was impossible before then. Rather than stress about it, just add that spelling as one of the crash-successfully- detected cases. Discussion: https://postgr.es/m/19344.1548554028@sss.pgh.pa.us
1 parent a9c35cf commit d6f6f0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/recovery/t/013_crash_restart.pl

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
ok( pump_until(
116116
$killme,
117117
\$killme_stderr,
118-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly/m
118+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
119119
),
120120
"psql query died successfully after SIGQUIT");
121121
$killme_stderr = '';
@@ -128,7 +128,7 @@
128128
ok( pump_until(
129129
$monitor,
130130
\$monitor_stderr,
131-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly/m
131+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
132132
),
133133
"psql monitor died successfully after SIGQUIT");
134134
$monitor->finish;
@@ -197,7 +197,7 @@
197197
];
198198
ok( pump_until(
199199
$killme, \$killme_stderr,
200-
qr/server closed the connection unexpectedly/m),
200+
qr/server closed the connection unexpectedly|connection to server was lost/m),
201201
"psql query died successfully after SIGKILL");
202202
$killme->finish;
203203

@@ -207,7 +207,7 @@
207207
ok( pump_until(
208208
$monitor,
209209
\$monitor_stderr,
210-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly/m
210+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
211211
),
212212
"psql monitor died successfully after SIGKILL");
213213
$monitor->finish;

0 commit comments

Comments
 (0)