Changeset 245323 in webkit


Ignore:
Timestamp:
May 15, 2019 8:00:09 AM (5 years ago)
Author:
Chris Dumez
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:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r245322 r245323  
     12019-05-15  Chris Dumez  <cdumez@apple.com>
     2
     3        Flaky API Test: TestWebKitAPI.ProcessSwap.NumberOfCachedProcesses
     4        https://bugs.webkit.org/show_bug.cgi?id=195102
     5        <rdar://problem/48456786>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Try to wait longer for the number of processes to reach the expected number
     10        and before failing.
     11
     12        * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
     13
    1142019-05-15  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm

    r245204 r245323  
    35113511    done = false;
    35123512
    3513     int timeout = 10;
    3514     while ([processPool _webProcessCount] > (maxSuspendedPageCount + 2) && timeout > 0) {
     3513    int timeout = 100;
     3514    while (([processPool _webProcessCount] > (maxSuspendedPageCount + 2) &&  [processPool _webProcessCountIgnoringPrewarmedAndCached] > (maxSuspendedPageCount + 1)) && timeout > 0) {
    35153515        TestWebKitAPI::Util::sleep(0.1);
    35163516        --timeout;
     
    35273527    TestWebKitAPI::Util::run(&readyToContinue);
    35283528
    3529     timeout = 10;
     3529    timeout = 100;
    35303530    while ([processPool _webProcessCount] > 1 && timeout > 0) {
    35313531        TestWebKitAPI::Util::sleep(0.1);
Note: See TracChangeset for help on using the changeset viewer.