diff --git a/dev/manual_tests/test/mock_image_http.dart b/dev/manual_tests/test/mock_image_http.dart index 1a15b7a5f9e..7c5c4aa6c56 100644 --- a/dev/manual_tests/test/mock_image_http.dart +++ b/dev/manual_tests/test/mock_image_http.dart @@ -19,6 +19,7 @@ MockHttpClient createMockImageHttpClient(SecurityContext _) { when(request.close()).thenAnswer((_) => Future.value(response)); when(response.contentLength).thenReturn(kTransparentImage.length); when(response.statusCode).thenReturn(HttpStatus.ok); + when(response.compressionState).thenReturn(HttpClientResponseCompressionState.notCompressed); when(response.listen(any)).thenAnswer((Invocation invocation) { final void Function(List) onData = invocation.positionalArguments[0] as void Function(List); final void Function() onDone = invocation.namedArguments[#onDone] as void Function();