Speed up tst_QLocalSocket::sendData
The data function for this test re-used listenAndConnect_data that has an additional column "connections" which was never used in sendData. Thus sendData executed three times the same code which is just uselessly burned CI time. Copied the actually needed code of listenAndConnect_data to sendData_data. Change-Id: I6cdb1c1b72cb4ce7be7c13e90eea30ac09a14914 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
007039eae9
commit
2b2232b5ea
@ -498,7 +498,11 @@ void tst_QLocalSocket::connectWithOldOpen()
|
||||
|
||||
void tst_QLocalSocket::sendData_data()
|
||||
{
|
||||
listenAndConnect_data();
|
||||
QTest::addColumn<QString>("name");
|
||||
QTest::addColumn<bool>("canListen");
|
||||
|
||||
QTest::newRow("null") << QString() << false;
|
||||
QTest::newRow("tst_localsocket") << "tst_localsocket" << true;
|
||||
}
|
||||
|
||||
void tst_QLocalSocket::sendData()
|
||||
|
Loading…
Reference in New Issue
Block a user