Unverified Commit fe8dcf66 authored by Jesús S Guerrero's avatar Jesús S Guerrero Committed by GitHub

[flutter_tools] timeline_test.dart flaky (#116667)

* contains name instead of remove last

* fix expect

* remove and expect on elements

* delete unused code
parent 64e73364
...@@ -96,7 +96,15 @@ void main() { ...@@ -96,7 +96,15 @@ void main() {
// The downloaded part of the timeline may contain an end event whose // The downloaded part of the timeline may contain an end event whose
// corresponding begin event happened before the start of the timeline. // corresponding begin event happened before the start of the timeline.
if (stack.isNotEmpty) { if (stack.isNotEmpty) {
expect(stack.removeLast(), name); bool pass = false;
while (stack.isNotEmpty) {
final String value = stack.removeLast();
if (value == name) {
pass = true;
break;
}
}
expect(pass, 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