summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/ssl
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2018-06-27 11:42:51 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2018-06-28 03:28:50 +0000
commit5ba5a7b5bc452426a2c1423aabcb314e559e68ca (patch)
tree65d299c968c6dd9d3d1138a0b4bfae9b6de486dc /tests/auto/network/ssl
parent73b9242d7e5dc1dc8a8abcf4747002081545d71f (diff)
DTLS cookie auto-test - do not check the exact UDP socket errors
It was observed on OpenSUSE VM in CI - apparently, even after succesfull read from UDP socket error was not UnknownSocketError. While it's under investigation, the DTLS auto-test should limit itself by DTLS things and barely test IO success (socket-wise) when needed. Change-Id: I0773a02c591432b0d6c894f4131f70e41dc7ed72 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network/ssl')
-rw-r--r--tests/auto/network/ssl/qdtlscookie/tst_qdtlscookie.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/network/ssl/qdtlscookie/tst_qdtlscookie.cpp b/tests/auto/network/ssl/qdtlscookie/tst_qdtlscookie.cpp
index 05c46dbd9f..fd5c81f4f4 100644
--- a/tests/auto/network/ssl/qdtlscookie/tst_qdtlscookie.cpp
+++ b/tests/auto/network/ssl/qdtlscookie/tst_qdtlscookie.cpp
@@ -342,7 +342,6 @@ void tst_QDtlsCookie::sendClientHello(QUdpSocket *socket, QDtls *dtls,
// We don't really care about QDtls in this auto-test, but must be
// sure that we, indeed, sent our hello and if not - stop early without
// running event loop:
- QCOMPARE(socket->error(), QAbstractSocket::UnknownSocketError);
QCOMPARE(dtls->dtlsError(), QDtlsError::NoError);
// We never complete a handshake, so it must be 'HandshakeInProgress':
QCOMPARE(dtls->handshakeState(), QDtls::HandshakeInProgress);
@@ -362,7 +361,6 @@ void tst_QDtlsCookie::receiveMessage(QUdpSocket *socket, QByteArray *message,
message->resize(socket->pendingDatagramSize());
const qint64 read = socket->readDatagram(message->data(), message->size(),
address, port);
- QCOMPARE(socket->error(), QAbstractSocket::UnknownSocketError);
QVERIFY(read > 0);
message->resize(read);