e6738ea test_simple_replication: Fix waiting for replication

Authored and Committed by pviktori 10 years ago
    test_simple_replication: Fix waiting for replication
    
    The integration tests must wait for replication to happen before checking
    results. In some cases, the tests have failed because the checks that
    detect completed replication were insufficient.
    
    This fixes the code to:
    - Wait for replication to be completed on both servers
    - In the case of an error, continue waiting -- it might be the case that
      the DS is temporarily unreachable