From d6824ad8f86490479eab6b8bb7dea6d8c13f6304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Su=C3=A1rez?= Date: Sat, 12 Apr 2014 23:07:40 +0200 Subject: [PATCH] Fixed unit test! REVIEW: 117387 --- tests/testsocketlinereader.cpp | 3 +++ 1 file changed, 3 insertions(+) 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]);