Commit Graph

10 Commits (a0fbe99be0164f9c71b8488626a7f42c4fb02c2f)

Author SHA1 Message Date
Alex Willmer a0fbe99be0 testlib: Wait for sshd before running tests
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
8 years ago
David Wilson 397ff50a58 Try to be compatible with older Docker daemons; (hopefully) closes #46 8 years ago
David Wilson e3b51de6b1 Handle docker running on localhost. 8 years ago
David Wilson 2ed39c411f Allow call_function_test to succeed depite testlib import. 8 years ago
David Wilson 031c0f3cf4 issue #20: TestCase subclass with a nicer assertRaises 8 years ago
David Wilson d9bf091e6f Simple working fakessh_test. 8 years ago
David Wilson a89c20e54e Fixup some more tests. 8 years ago
David Wilson bc437733e5 Working DockerMixin for tests. 8 years ago
David Wilson 10c0dca24c Apply package rename to tests 8 years ago
David Wilson 66f92ad44c Initial couple of tests. 9 years ago