Fixed unit test!
REVIEW: 117387
This commit is contained in:
parent
d7e9a42a7b
commit
d6824ad8f8
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue