Skip to content

Commit ab9cbef

Browse files
authored
Fix test that fails on Windows. (#1560)
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.
1 parent 003cb15 commit ab9cbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/command_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ main() {
633633
expect(await process.stderr.next,
634634
'Could not format because the source could not be parsed:');
635635
expect(await process.stderr.next, '');
636-
expect(await process.stderr.next, contains(p.join('foo', 'main.dart')));
636+
expect(await process.stderr.next, contains('main.dart'));
637637
await process.shouldExit(65);
638638
});
639639

0 commit comments

Comments
 (0)