Skip to content

Commit

Permalink
Fix test that fails on Windows.
Browse files Browse the repository at this point in the history
I guess Dart on Windows uses `/` as a path separator in stack traces?

I'm not sure if it's safe to rely on that, so just tweaking the
expectation to not care about the separator at all.
  • Loading branch information
munificent committed Sep 5, 2024
1 parent 003cb15 commit ca923cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ main() {
expect(await process.stderr.next,
'Could not format because the source could not be parsed:');
expect(await process.stderr.next, '');
expect(await process.stderr.next, contains(p.join('foo', 'main.dart')));
expect(await process.stderr.next, contains('main.dart'));
await process.shouldExit(65);
});

Expand Down

0 comments on commit ca923cd

Please sign in to comment.