-
Hello, Guys! I faced the problem that the patrol test hangs with the following error in the flutter logs. Could you help? Test code
Test logs
Flutter logs
UPD |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, check if your app overrides final oldCallback = FlutterError.onError;
FlutterError.onError = (details) {
print('error');
oldCallback?.call(details);
}; And if yes, check what happens when you remove it. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Yes, I have. But unfortunately even after I removed it, problem still appearing. The most interesting thing that I am facing with this problem only when assertion in test is failed, element not found for example. If element is visible - everything is fine.
|
Beta Was this translation helpful? Give feedback.
You see this only if the test is failed because you got some error and
onError
is overriden.Maybe you somehow overriding it in one more place. Here you can find the same problem, maybe it'll be helpful for you. Let me know if you found something interesting.