We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2e2bb commit 2beb4acCopy full SHA for 2beb4ac
src/test/perl/PostgreSQL/Test/Utils.pm
@@ -426,8 +426,16 @@ sub pump_until
426
while (1)
427
{
428
last if $$stream =~ /$until/;
429
- return 0 if ($timeout->is_expired);
430
- return 0 if (not $proc->pumpable());
+ if ($timeout->is_expired)
+ {
431
+ diag("pump_until: timeout expired when searching for \"$until\" with stream: \"$$stream\"");
432
+ return 0;
433
+ }
434
+ if (not $proc->pumpable())
435
436
+ diag("pump_until: process terminated unexpectedly when searching for \"$until\" with stream: \"$$stream\"");
437
438
439
$proc->pump();
440
}
441
return 1;
0 commit comments