Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+4-2
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)