mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 18:16:04 +00:00
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:
parent
d0f1edb2da
commit
e2471dd363
|
@ -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"]]++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue