Flaky API Test: TestWebKitAPI.ProcessSwap.NumberOfCachedProcesses
https://bugs.webkit.org/show_bug.cgi?id=195102
<rdar://problem/48456786>
Reviewed by Alex Christensen.
Try to wait longer for the number of processes to reach the expected number
and before failing.
* TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@245323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index 63db5da7..feb759b 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,16 @@
+2019-05-15 Chris Dumez <cdumez@apple.com>
+
+ Flaky API Test: TestWebKitAPI.ProcessSwap.NumberOfCachedProcesses
+ https://bugs.webkit.org/show_bug.cgi?id=195102
+ <rdar://problem/48456786>
+
+ Reviewed by Alex Christensen.
+
+ Try to wait longer for the number of processes to reach the expected number
+ and before failing.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
+
2019-05-15 Alex Christensen <achristensen@webkit.org>
Allow NSFileCoordinator to be called from WebContent process
diff --git a/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm b/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
index 2e8e8e2..4c3ca9f 100644
--- a/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
+++ b/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
@@ -3510,8 +3510,8 @@
TestWebKitAPI::Util::run(&done);
done = false;
- int timeout = 10;
- while ([processPool _webProcessCount] > (maxSuspendedPageCount + 2) && timeout > 0) {
+ int timeout = 100;
+ while (([processPool _webProcessCount] > (maxSuspendedPageCount + 2) && [processPool _webProcessCountIgnoringPrewarmedAndCached] > (maxSuspendedPageCount + 1)) && timeout > 0) {
TestWebKitAPI::Util::sleep(0.1);
--timeout;
}
@@ -3526,7 +3526,7 @@
}];
TestWebKitAPI::Util::run(&readyToContinue);
- timeout = 10;
+ timeout = 100;
while ([processPool _webProcessCount] > 1 && timeout > 0) {
TestWebKitAPI::Util::sleep(0.1);
--timeout;