From 0955fe21a5f86e03ef036311af32b1e63f52b9fe Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 22 Aug 2026 11:55:23 +0000 Subject: [PATCH] test: verify async button controller resets value on trigger exception Co-authored-by: esenmx <43244505+esenmx@users.noreply.github.com> --- test/async_button_controller_test.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/async_button_controller_test.dart b/test/async_button_controller_test.dart index b329c69..329b4ed 100644 --- a/test/async_button_controller_test.dart +++ b/test/async_button_controller_test.dart @@ -56,8 +56,10 @@ void main() { onPressed: () async => throw StateError('oops'), ); final states = recordStates(c); + check(c.value).isFalse(); await check(c.trigger()).throws(); check(states).deepEquals([true, false]); + check(c.value).isFalse(); check(c).isIdle(); }); });