Commit 8cf23871 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Fix flaky FileSystemApiOpenMultipleExistingFilesTest test

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

Bug: 1103147
Change-Id: I3638298d7e016892def8ed61a3c0a0bc12dfc246
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359976Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799052}
parent 2ed7c8d3
......@@ -8,6 +8,10 @@ chrome.test.runTests([
{acceptsMultiple: true},
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, false);
checkEntry(entries[1], 'open_existing2.txt', false, false);
})
......
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