summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-07-11 08:23:08 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2023-07-11 13:04:17 +0000
commit43990d33bb25ff88305ba0ed5d51a8bbf1bf5877 (patch)
treeae38e7182c05d28ad590db3f4cb8d44410d04730 /tests/auto
parentddccbe3fd41897531669f3b10d23a648239746b7 (diff)
Stabilize qwebengineloadinginfo::responseHeaders
The wait took too long. Rewrite it to be race safe, and increase timeoue. Pick-to: 6.6 Change-Id: I18c8e17621502bfcfaa739d900ea64e33d0678f6 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp b/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp
index 064abe816..daa6bb079 100644
--- a/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp
+++ b/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp
@@ -82,7 +82,7 @@ private Q_SLOTS:
QWebEngineHttpRequest request(httpServer.url("/somepage.html"));
page.load(request);
- QVERIFY(spy.wait());
+ QTRY_VERIFY_WITH_TIMEOUT(spy.count() > 0, 20000);
QVERIFY(httpServer.stop());
}
};