⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280992 in webkit


Ignore:
Timestamp:
Aug 12, 2021, 4:26:58 PM (5 years ago)
Author:
Chris Dumez
Message:

REGRESSION (iPadOS 14): [ iPadOS wk2 ] TestWebKitAPI.ServiceWorkers.SuspendNetworkProcess is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=217714
<rdar://problem/70296664>

Reviewed by Geoffrey Garen.

Give the database some time to get written out to disk before we try and suspend the network process, to try
and address the flakiness.

  • TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r280986 r280992  
     12021-08-12  Chris Dumez  <cdumez@apple.com>
     2
     3        REGRESSION (iPadOS 14): [ iPadOS wk2 ] TestWebKitAPI.ServiceWorkers.SuspendNetworkProcess is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=217714
     5        <rdar://problem/70296664>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        Give the database some time to get written out to disk before we try and suspend the network process, to try
     10        and address the flakiness.
     11
     12        * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
     13
    1142021-08-12  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm

    r280953 r280992  
    19461946    NSURL *swDBPath = [directory URLByAppendingPathComponent:@"ServiceWorkerRegistrations-7.sqlite3"];
    19471947
     1948    unsigned timeout = 0;
     1949    while (![[NSFileManager defaultManager] fileExistsAtPath:swDBPath.path] && ++timeout < 100)
     1950        TestWebKitAPI::Util::sleep(0.1);
     1951
    19481952    EXPECT_TRUE([[NSFileManager defaultManager] fileExistsAtPath:swDBPath.path]);
    19491953
Note: See TracChangeset for help on using the changeset viewer.