From ca923cd9af6f83201c1633049f3e0b63d1592ce7 Mon Sep 17 00:00:00 2001 From: Robert Nystrom Date: Thu, 5 Sep 2024 11:09:46 -0700 Subject: [PATCH] Fix test that fails on Windows. 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); });