Fix spelling of "occurrences" in flaky test results output.

Change-Id: I9028298127d69893d1402080150a5bf24f3867f2
Reviewed-on: https://dart-review.googlesource.com/c/88460
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
This commit is contained in:
William Hesse 2019-01-04 14:44:00 +00:00 committed by commit-bot@chromium.org
parent d0f1edb2da
commit e2471dd363

View file

@ -57,10 +57,16 @@ ${parser.usage}""");
testData["current"] = result["result"];
testData["current_counter"] = 1;
}
final occurences =
testData.putIfAbsent("occurences", () => <String, dynamic>{});
occurences.putIfAbsent(result["result"], () => 0);
occurences[result["result"]]++;
// Remove this code once all files are updated
const occurrencesMisspelled = "occurences";
var occurrences = testData[occurrencesMisspelled];
if (occurrences != null) {
testData["occurrences"] = occurrences;
testData.remove(occurrencesMisspelled);
}
occurrences = testData.putIfAbsent("occurrences", () => <String, dynamic>{});
occurrences.putIfAbsent(result["result"], () => 0);
occurrences[result["result"]]++;
}
}