0f9d2927b5
This test was flaky because thread-exit events are not guaranteed because the VM might terminate too quickly and we will instead emit a "terminated" event. Rather than trying to guarantee these events (for no benefit), this just makes the test accept the results with or without the text-exited event as long as we still got the terminated event. Fixes https://github.com/dart-lang/sdk/issues/61826 Change-Id: I0dfbbae3f0d1f41f128ff19aa0f733aeba49f579 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/464680 Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Jessy Yameogo <yjessy@google.com>