Index: pkg/scheduled_test/test/descriptor/nothing_test.dart |
diff --git a/pkg/scheduled_test/test/descriptor/nothing_test.dart b/pkg/scheduled_test/test/descriptor/nothing_test.dart |
index 5d145923ffd987e9616aa43f4fb7b935bb62210d..20f24875ac707045b382dc345ca5e299e08e8009 100644 |
--- a/pkg/scheduled_test/test/descriptor/nothing_test.dart |
+++ b/pkg/scheduled_test/test/descriptor/nothing_test.dart |
@@ -56,7 +56,7 @@ void main() { |
test('test 2', () { |
expect(errors, everyElement(new isInstanceOf<ScheduleError>())); |
expect(errors.length, equals(1)); |
- expect(errors.first.error, |
+ expect(errors.first.error.toString(), |
matches(r"^Expected nothing to exist at '[^']+[\\/]name.txt', but " |
r"found a file\.$")); |
}); |
@@ -78,9 +78,9 @@ void main() { |
test('test 2', () { |
expect(errors, everyElement(new isInstanceOf<ScheduleError>())); |
expect(errors.length, equals(1)); |
- expect(errors.first.error, |
+ expect(errors.first.error.toString(), |
matches(r"^Expected nothing to exist at '[^']+[\\/]dir', but found a " |
r"directory\.$")); |
}); |
}, passing: ['test 2']); |
-} |
+} |