Fixed unit test!

REVIEW: 117387
This commit is contained in:
David Suárez 2014-04-12 23:07:40 +02:00 committed by Albert Vaca
parent d7e9a42a7b
commit d6824ad8f8

View file

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