Index: pkg/scheduled_test/test/descriptor/pattern_test.dart |
diff --git a/pkg/scheduled_test/test/descriptor/pattern_test.dart b/pkg/scheduled_test/test/descriptor/pattern_test.dart |
index 7bd33a37283d90225b4f29fde2856610f5812082..b15eb8486f4e84fcccffade37e8eda558e8ca408 100644 |
--- a/pkg/scheduled_test/test/descriptor/pattern_test.dart |
+++ b/pkg/scheduled_test/test/descriptor/pattern_test.dart |
@@ -68,7 +68,8 @@ void main() { |
test('test 2', () { |
expect(errors, everyElement(new isInstanceOf<ScheduleError>())); |
expect(errors.length, equals(1)); |
- expect(errors.first.error, |
+ expect(errors.first.error, new isInstanceOf<TestFailure>()); |
+ expect(errors.first.error.message, |
matches(r"^No entry found in '[^']+' matching /f\.\./\.$")); |
}); |
}, passing: ['test 2']); |
@@ -90,7 +91,8 @@ void main() { |
test('test 2', () { |
expect(errors, everyElement(new isInstanceOf<ScheduleError>())); |
expect(errors.length, equals(1)); |
- expect(errors.first.error, |
+ expect(errors.first.error, new isInstanceOf<TestFailure>()); |
+ expect(errors.first.error.message, |
matches(r"^Caught error\n" |
r"| File 'foo' should contain:\n" |
r"| | bar\n" |
@@ -123,7 +125,8 @@ void main() { |
test('test 2', () { |
expect(errors, everyElement(new isInstanceOf<ScheduleError>())); |
expect(errors.length, equals(1)); |
- expect(errors.first.error, |
+ expect(errors.first.error, new isInstanceOf<TestFailure>()); |
+ expect(errors.first.error.message, |
matches(r"^Caught error\n" |
r"| File 'bar' should contain:\n" |
r"| | baz\n" |
@@ -154,7 +157,8 @@ void main() { |
test('test 2', () { |
expect(errors, everyElement(new isInstanceOf<ScheduleError>())); |
expect(errors.length, equals(1)); |
- expect(errors.first.error, matches( |
+ expect(errors.first.error, new isInstanceOf<TestFailure>()); |
+ expect(errors.first.error.message, matches( |
r"^Multiple valid entries found in '[^']+' matching " |
r"\/f\.\./:\n" |
r"\* faa\n" |