Title: [245323] trunk/Tools
Revision
245323
Author
[email protected]
Date
2019-05-15 08:00:09 -0700 (Wed, 15 May 2019)

Log Message

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:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (245322 => 245323)


--- trunk/Tools/ChangeLog	2019-05-15 14:55:11 UTC (rev 245322)
+++ trunk/Tools/ChangeLog	2019-05-15 15:00:09 UTC (rev 245323)
@@ -1,3 +1,16 @@
+2019-05-15  Chris Dumez  <[email protected]>
+
+        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  <[email protected]>
 
         Allow NSFileCoordinator to be called from WebContent process

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm (245322 => 245323)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm	2019-05-15 14:55:11 UTC (rev 245322)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm	2019-05-15 15:00:09 UTC (rev 245323)
@@ -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;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to