Just insert it before bad tester.pumpAndSettle() and analyze output.
await TestAsyncUtils.guard<int>(() async {
final DateTime endTime =
tester.binding.clock.fromNowBy(Duration(seconds: 30));
int count = 0;
do {
if (tester.binding.clock.now().isAfter(endTime)) {
break;