From ab9cbefa5c7bedb5e93426e44d8e586dd4c0ff7c Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Thu, 5 Sep 2024 13:39:21 -0700 Subject: [PATCH] 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. --- test/command_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/command_test.dart b/test/command_test.dart index ef281060..889feec4 100644 --- a/test/command_test.dart +++ b/test/command_test.dart @@ -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); });