flutter/packages/flutter_tools/test
Danny Tuppeny 53b87635b0
[flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299)
There's currently a lot of code that handles RPC Errors that contain the
text "Service connection disposed" because the error originally did not
have a unique error code.

A new error code was added in
https://dart-review.googlesource.com/c/sdk/+/381501 but it's not
currently used because it won't be caught by existing code.

This change updates all places that check for this text, and now also
handle the new error code in preperation for the code changing in
future.

See https://github.com/flutter/flutter/issues/153471

cc @bkonyi 

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
Issue listed, but this change does not directly fix it, it just prepares
for a related future change that will simplify handling these errors
without string checks
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].
2025-03-27 08:51:38 +00:00
..
android_java11_integration.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_preview_integration.shard More FlutterPlugin static method conversion (#165506) 2025-03-22 01:34:05 +00:00
commands.shard [flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299) 2025-03-27 08:51:38 +00:00
data make asset_test.dart tests not dependent on context (#141331) 2024-01-11 18:08:07 +00:00
general.shard [flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299) 2025-03-27 08:51:38 +00:00
host_cross_arch.shard Reland #163711 after #163780 (#163812) 2025-02-21 03:35:14 +00:00
integration.shard [ Hot Restart ] Fix possible hang due to unhandled exception in UI isolates on hot restart (#165693) 2025-03-26 16:50:07 +00:00
src Refactor writing of package config in tests (#163734) 2025-02-28 08:51:59 +00:00
web.shard Align web terminal messages with the VM (#163268) 2025-02-14 19:57:53 +00:00