Skip to content

Commit

Permalink
[gardening] Use Platform.lineTerminator in remove_error_listener_test…
Browse files Browse the repository at this point in the history
… expectations.

Follow-up to https://dart.googlesource.com/sdk/+/088b178d9d464a3e89e6467dff37d80d4170e7fd

Fixes #54007
TEST=ci

Change-Id: I507de90fb46641af06890d052af0f8db29363473
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335326
Auto-Submit: Alexander Aprelev <[email protected]>
Reviewed-by: Ryan Macnak <[email protected]>
Commit-Queue: Ryan Macnak <[email protected]>
Commit-Queue: Alexander Aprelev <[email protected]>
  • Loading branch information
aam authored and Commit Queue committed Nov 9, 2023
1 parent 0ab26a7 commit e0751fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/lib/isolate/remove_error_listener_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ void main(List<String> args) {
Platform.script.toFilePath(),
'child'
]);
Expect.isTrue(
result.stderr.contains("Unhandled exception:\nException: Oops!"));
Expect.isTrue(result.stderr.contains(
"Unhandled exception:${Platform.lineTerminator}Exception: Oops!"));
return;
}
{
Expand Down
4 changes: 2 additions & 2 deletions tests/lib_2/isolate/remove_error_listener_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void main(List<String> args) {
Platform.script.toFilePath(),
'child'
]);
Expect.isTrue(
result.stderr.contains("Unhandled exception:\nException: Oops!"));
Expect.isTrue(result.stderr.contains(
"Unhandled exception:${Platform.lineTerminator}Exception: Oops!"));
return;
}
{
Expand Down

0 comments on commit e0751fb

Please sign in to comment.