Skip to content

Commit 2356038

Browse files
knizhnikkelvich
authored andcommitted
Add timeouts to travis tests
1 parent 63dc30c commit 2356038

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/001_basic_recovery.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
diag("stopping node 2");
4242
$cluster->{nodes}->[2]->teardown_node;
4343

44+
sleep(5); # Wait until failure of node will be detected
45+
4446
my $ret = $cluster->psql(0, 'postgres', "insert into t values(4, 40);");
4547
diag "tx1 status = $ret";
4648

@@ -59,8 +61,8 @@
5961

6062
diag("starting node 2");
6163
$cluster->{nodes}->[2]->start;
62-
#diag("sleeping 10");
63-
sleep(10); # XXX: here we can poll
64+
65+
sleep(10); # Wait until recovery of node will be completed
6466

6567
$cluster->psql(0, 'postgres', "select mtm.poll_node(3);");
6668

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy