Skip to content

Commit b2a8b98

Browse files
committed
t/04_timeout.t: Use longer timeouts to make test less racy
The actual test runtime isn't affected, both tests should still finish after one second in normal circumstances.
1 parent fc7df27 commit b2a8b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/04_timeout.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ my $cp = CP_Testing->new( {default_action => 'custom_query'} );
1717
$dbh = $cp->test_database_handle();
1818

1919
$t=q{Setting the --timeout flag works as expected};
20-
$res = $cp->run('--query="SELECT pg_sleep(2)" -w 7 --timeout=1');
20+
$res = $cp->run('--query="SELECT pg_sleep(10)" -w 7 --timeout=1');
2121
like ($res, qr{Command timed out}, $t);
2222

2323
$t=q{Setting the --timeout flag works as expected};
24-
$res = $cp->run('--query="SELECT pg_sleep(1)" -w 7 --timeout=2');
24+
$res = $cp->run('--query="SELECT pg_sleep(1)" -w 7 --timeout=10');
2525
like ($res, qr{Invalid format}, $t);
2626

2727
exit;

0 commit comments

Comments
 (0)