diff --git a/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp b/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp index aca66f2b8f7..b7928130e6d 100644 --- a/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp +++ b/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp @@ -766,7 +766,7 @@ void tst_QHttp2Connection::headerFrameAfterRSTOutgoing() // Create a new stream then send and handle a new request! QHttp2Stream *clientStream2 = connection->createStream().unwrap(); QSignalSpy client2HeaderReceivedSpy{ clientStream2, &QHttp2Stream::headersReceived }; - QSignalSpy client2ErrorOccurredSpy{ clientStream, &QHttp2Stream::errorOccurred }; + QSignalSpy client2ErrorOccurredSpy{ clientStream2, &QHttp2Stream::errorOccurred }; clientStream2->sendHEADERS(headers, true); QVERIFY(newIncomingStreamSpy.wait()); QHttp2Stream *serverStream2 = newIncomingStreamSpy.front().front().value();