• Alex Willmer's avatar
    testlib: Wait for sshd before running tests · dfc7b855
    Alex Willmer authored
    On Ubuntu 17.10 something (probably Docker) appears to be accepting
    connections, before sshd is fully ready. This results in a race
    condition, and hence connection errors for the first few tests (2-3 on
    my laptop).
    
    testlib.wait_for_port() checks not only that the port can be connected
    to, but also something resembling the sshd banner is sent.
    
    Fixes #51
    dfc7b855
testlib.py 5.12 KB