Changeset 251996 in webkit


Ignore:
Timestamp:
Nov 4, 2019 9:50:36 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Flaky API Test TestWebKitAPI.WebKit.UploadDirectory
https://bugs.webkit.org/show_bug.cgi?id=203652

Patch by Alex Christensen <achristensen@webkit.org> on 2019-11-04
Reviewed by Alexey Proskuryakov.

It is not important that the directory to upload does not exist before the test starts.
Make the test more robust to state left behind by previous iterations of this test by removing the check.
The important check in this test is the uploaded body size.

  • TestWebKitAPI/Tests/WebKitCocoa/UploadDirectory.mm:

(TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r251995 r251996  
     12019-11-04  Alex Christensen  <achristensen@webkit.org>
     2
     3        Flaky API Test TestWebKitAPI.WebKit.UploadDirectory
     4        https://bugs.webkit.org/show_bug.cgi?id=203652
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        It is not important that the directory to upload does not exist before the test starts.
     9        Make the test more robust to state left behind by previous iterations of this test by removing the check.
     10        The important check in this test is the uploaded body size.
     11
     12        * TestWebKitAPI/Tests/WebKitCocoa/UploadDirectory.mm:
     13        (TEST):
     14
    1152019-11-04  Kate Cheney  <katherine_cheney@apple.com>
    216
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/UploadDirectory.mm

    r248139 r251996  
    7373    NSError *error = nil;
    7474    NSURL *directory = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"UploadDirectory"] isDirectory:YES];
    75     EXPECT_FALSE([fileManager fileExistsAtPath:directory.path]);
     75    [fileManager removeItemAtPath:directory.path error:nil];
    7676    EXPECT_TRUE([fileManager createDirectoryAtURL:directory withIntermediateDirectories:YES attributes:nil error:&error]);
    7777    EXPECT_FALSE(error);
Note: See TracChangeset for help on using the changeset viewer.