qt6-bb10/tests/auto/network/access/qnetworkreply
Mårten Nordheim 8de1ed8979 tst_QNetworkReply: update and speed up httpConnectionCount
Because we will do a small wait after the final connection (to see
if there are any unexpected extra connections) we can save some time
by reducing _how long_ we wait for it.
In general we only need an extra long wait for the first connection,
subsequent connections are faster.
So we change the loop structure from looping until we hit 20(!)
connections, when anything larger than 6 will fail the test anyway!
And use qWaitFor instead of repeatedly calling enterLoop and checking
the state of an ElapsedTimer, the total wait time is not super
interesting, and made it a guarantee that the test would take 10
seconds.

While we are here, update the attribute we use to test HTTP/2
connections. We were previously enabling http/2, but this is the new
default so it's not needed. We do, however, need to enable h2c if we
want to see it trying to upgrade to http/2 over cleartext.

Not a big issue, so we don't pick it very far back.

Pick-to: 6.7
Change-Id: Ia314ae2827ab8a8baaa4af2c5136c5e531bcb1f8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-12 14:23:57 +01:00
..
certs tst_qnetworkreply: replace server.pem/key pair 2022-07-15 22:42:43 +02:00
data
echo Change license for tests files 2024-02-04 09:56:42 +01:00
test QtNetwork auto tests: compile with QT_NO_FOREACH 2023-08-22 21:50:38 +03:00
.gitattributes
.gitignore
4G.br
BLACKLIST unblacklist passing tests 2022 2022-06-23 01:36:01 +02:00
CMakeLists.txt CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
bigfile
element.xml
empty
image1.jpg
image2.jpg
image3.jpg
index.html
resource
rfc3252.txt
smb-file.txt
testserver_index.html
tst_qnetworkreply.cpp tst_QNetworkReply: update and speed up httpConnectionCount 2024-03-12 14:23:57 +01:00