Fix failing test for QObjectHandler.
This commit is contained in:
@@ -58,7 +58,7 @@ void QObjectHandlerPrivate::invokeSlot(Socket *socket, Method m)
|
||||
|
||||
// Ensure the parameter is correct
|
||||
QList<QByteArray> params = method.parameterTypes();
|
||||
if (params.count() != 1 || params.at(0) != "QHttpSocket*") {
|
||||
if (params.count() != 1 || params.at(0) != "QHttpEngine::Socket*") {
|
||||
socket->writeError(Socket::InternalServerError);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ void TestQObjectHandler::testOldConnection_data()
|
||||
<< static_cast<int>(QHttpEngine::Socket::InternalServerError);
|
||||
|
||||
QTest::newRow("valid")
|
||||
<< QByteArray(SLOT(valid(Socket*)))
|
||||
<< QByteArray(SLOT(valid(QHttpEngine::Socket*)))
|
||||
<< static_cast<int>(QHttpEngine::Socket::OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user