diff --git a/tests/testsocketlinereader.cpp b/tests/testsocketlinereader.cpp index c6a3aec1c..e3198ab74 100644 --- a/tests/testsocketlinereader.cpp +++ b/tests/testsocketlinereader.cpp @@ -84,6 +84,9 @@ void TestSocketLineReader::socketLineReader() mTimer.start(); mLoop.exec(); + /* remove the empty line before compare */ + dataToSend.removeOne("\n"); + QCOMPARE(mPackages.count(), 5);//We expect 5 Packages for(int x = 0;x < 5; ++x) { QCOMPARE(mPackages[x], dataToSend[x]);