tests: Integration test infrastructure should do only a single recovery
authorMartin Schwenke <martin@meltin.net>
Thu, 20 Jun 2013 06:42:30 +0000 (16:42 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Sat, 22 Jun 2013 05:51:17 +0000 (15:51 +1000)
No need for 2 recoveries after a restart.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit b953524185632d7f96a76d8f3bbed7ac1d143d40)

ctdb/tests/scripts/integration.bash

index 45e0b99e87007e8d6647e9e21e46b21ff4dbb0ab..a43ffe8be0f1ece2cb4bb2447101f30344edcf3b 100644 (file)
@@ -688,8 +688,6 @@ _ctdb_start_post ()
     echo "Forcing a recovery..."
     onnode -q 0 $CTDB recover
     sleep_for 1
-    echo "Forcing a recovery..."
-    onnode -q 0 $CTDB recover
 
     echo "ctdb is ready"
 }
@@ -749,8 +747,6 @@ restart_ctdb ()
        echo "Forcing a recovery..."
        onnode -q 0 $CTDB recover
        sleep_for 1
-       echo "Forcing a recovery..."
-       onnode -q 0 $CTDB recover
 
        # Cluster is still healthy.  Good, we're done!
        if ! onnode 0 $CTDB_TEST_WRAPPER _cluster_is_healthy ; then