summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qserialport/tst_qserialport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qserialport/tst_qserialport.cpp b/tests/auto/qserialport/tst_qserialport.cpp
index 9feccd4..2b8de92 100644
--- a/tests/auto/qserialport/tst_qserialport.cpp
+++ b/tests/auto/qserialport/tst_qserialport.cpp
@@ -476,7 +476,7 @@ void tst_QSerialPort::twoStageSynchronousLoopback()
receiverPort.waitForBytesWritten(waitMsecs);
QTest::qSleep(waitMsecs);
senderPort.waitForReadyRead(waitMsecs);
- QCOMPARE(receiverPort.bytesAvailable(), qint64(newlineArray.size()));
+ QCOMPARE(senderPort.bytesAvailable(), qint64(newlineArray.size()));
QCOMPARE(senderPort.readAll(), newlineArray);
// second stage
@@ -489,7 +489,7 @@ void tst_QSerialPort::twoStageSynchronousLoopback()
receiverPort.waitForBytesWritten(waitMsecs);
QTest::qSleep(waitMsecs);
senderPort.waitForReadyRead(waitMsecs);
- QCOMPARE(receiverPort.bytesAvailable(), qint64(newlineArray.size()));
+ QCOMPARE(senderPort.bytesAvailable(), qint64(newlineArray.size()));
QCOMPARE(senderPort.readAll(), newlineArray);
}