Commit 9c79ee7b authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Fix flaky FileSystemApiOpenMultipleWritableExistingFilesTest test

Ensure entry names are in sort order before checking the entry values.
Bot logs say (issue 1103147 #c13) test cannot assume sort order.

Bug: 1103147
Change-Id: I0dff82fe9e3b51d84a768ffb6e4e3a205c59b5a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359662Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799027}
parent 1b2b4828
......@@ -8,6 +8,10 @@ chrome.test.runTests([
{acceptsMultiple: true, type: 'openWritableFile'},
chrome.test.callbackPass(function(entries) {
chrome.test.assertEq(2, entries.length);
// Ensure entry names are in sort order: crbug.com/1103147
if (entries[0].name === 'open_existing2.txt') {
entries = [entries[1], entries[0]];
}
checkEntry(entries[0], 'open_existing1.txt', false, true);
checkEntry(entries[1], 'open_existing2.txt', false, true);
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment