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>
bb10
Timur Pocheptsov 2018-06-27 11:42:51 +02:00
parent 73b9242d7e
commit 5ba5a7b5bc
1 changed files with 0 additions and 2 deletions

View File

@ -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);