Fix tst_QWebSocket::tst_invalidOpen for catch-all DNS setups.
authorMilian Wolff <mail@milianw.de>
Thu, 6 Feb 2014 17:02:04 +0000 (18:02 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 6 Feb 2014 19:59:18 +0000 (20:59 +0100)
commit35a099243403ee0521474f9c53678c6f4420969c
tree86a88ffb58f8799d67241b665e730f4b896f3ef0
parentdaf0faa0930b72a78ff940ecbf2a5eb8930fd793
Fix tst_QWebSocket::tst_invalidOpen for catch-all DNS setups.

Instead of relying on a hostname which might still be resolved in
some DNS setups (i.e. always forward to google search or intranet),
we now try to connect to localhost port 1 which should yield a
ConnectionRefusedError.

This way, the test passes for me on my setup.

Change-Id: I025824796e94e718a42c4999706f647a72b37659
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
tests/auto/qwebsocket/tst_qwebsocket.cpp