From 8591f4f0d6fbf81740d8a12e924cf1ad307541f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Thu, 5 Jun 2025 14:54:14 +0200 Subject: [PATCH] tst_QHttp2Connection: fix typo of tested variable Accidentally used clientStream instead of clientStream2. Test still passes though. Change-Id: I118f1e429faa0367f0b4d02c74a221027ecb2b4d Reviewed-by: Edward Welbourne (cherry picked from commit 1a870f4bf2efdd0c0dd6f3d7a13edccf8c6701cf) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 9ff93f75c06b85408d9132eab0beebdc785085d2) --- .../network/access/qhttp2connection/tst_qhttp2connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();