@ -783,15 +783,15 @@ try_complete_step(Step *step, int flags)
td + = ( int64 ) current_time . tv_usec - ( int64 ) start_time . tv_usec ;
td + = ( int64 ) current_time . tv_usec - ( int64 ) start_time . tv_usec ;
/*
/*
* After 6 0 seconds , try to cancel the query .
* After 18 0 seconds , try to cancel the query .
*
*
* If the user tries to test an invalid permutation , we don ' t want
* If the user tries to test an invalid permutation , we don ' t want
* to hang forever , especially when this is running in the
* to hang forever , especially when this is running in the
* buildfarm . So try to cancel it after a minute . This will
* buildfarm . This will presumably lead to this permutation
* presumably lead to this permutation failing , but remaining
* failing , but remaining permutations and tests should still be
* permutations and tests should still be OK .
* OK .
*/
*/
if ( td > 6 0 * USECS_PER_SEC & & ! canceled )
if ( td > 18 0 * USECS_PER_SEC & & ! canceled )
{
{
PGcancel * cancel = PQgetCancel ( conn ) ;
PGcancel * cancel = PQgetCancel ( conn ) ;
@ -808,15 +808,15 @@ try_complete_step(Step *step, int flags)
}
}
/*
/*
* After 75 seconds , just give up and die .
* After 200 seconds , just give up and die .
*
*
* Since cleanup steps won ' t be run in this case , this may cause
* Since cleanup steps won ' t be run in this case , this may cause
* later tests to fail . That stinks , but it ' s better than waiting
* later tests to fail . That stinks , but it ' s better than waiting
* forever for the server to respond to the cancel .
* forever for the server to respond to the cancel .
*/
*/
if ( td > 75 * USECS_PER_SEC )
if ( td > 200 * USECS_PER_SEC )
{
{
fprintf ( stderr , " step %s timed out after 75 seconds \n " ,
fprintf ( stderr , " step %s timed out after 200 seconds \n " ,
step - > name ) ;
step - > name ) ;
exit_nicely ( ) ;
exit_nicely ( ) ;
}
}