• Tom Lane's avatar
    Improve wait logic in TAP tests for streaming replication. · 5c77690f
    Tom Lane authored
    Remove hard-wired sleep(2) delays in 001_stream_rep.pl in favor of using
    poll_query_until to check for the desired state to appear.  In addition,
    add such a wait before the last test in the script, as it's possible
    to demonstrate failures there after upcoming improvements in pg_ctl.
    
    (We might end up adding polling before each of the get_slot_xmins calls in
    this script, but I feel no great need to do that until shown necessary.)
    
    In passing, clarify the description strings for some of the test cases.
    
    Michael Paquier and Craig Ringer, pursuant to a complaint from me
    
    Discussion: https://postgr.es/m/8962.1498425057@sss.pgh.pa.us
    5c77690f
001_stream_rep.pl 10.4 KB