Commit 381f49e3 authored by Jérome Perrin's avatar Jérome Perrin

seleniumserver: try to fix intermitent test failure

This seem to be needed "sometimes", apparently on the first connection
after server is started, but this was not investigated much.
parent fce3c74a
......@@ -352,6 +352,8 @@ class TestSSHServer(SeleniumServerTestCase):
)
channel = client.invoke_shell()
channel.settimeout(30)
# apparently we sometimes need to send something on the first ssh connection
channel.send('\n')
# openssh prints a warning 'Attempt to write login records by non-root user (aborting)'
# so we received more than the lenght of the asserted message.
self.assertIn("Welcome to SlapOS Selenium Server.", channel.recv(100))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment