Update the exception thrown for invalid data in the codec test (flutter/engine#9929)

This commit is contained in:
Jason Simmons
2019-07-18 15:54:32 -07:00
committed by GitHub
parent 2f63de4797
commit 34fe51a9a4

View File

@@ -28,8 +28,8 @@ void main() {
test('Fails with invalid data', () async {
final Uint8List data = Uint8List.fromList(<int>[1, 2, 3]);
expect(
ui.instantiateImageCodec(data),
throwsA(exceptionWithMessage('operation failed'))
() => ui.instantiateImageCodec(data),
throwsA(exceptionWithMessage('Could not instantiate image codec.'))
);
});