Android: Wait for BridgeIdlingResource to become idle timed out #4279
Description
What happened?
A bug report from an older version of React Native Navigation describes an issue encountered after upgrading from RN0.69 to RN0.71. The tests, specifically on Android, began failing intermittently with the error:
Test Failed: Wait for [com.wix.detox.reactnative.idlingresources.BridgeIdlingResource] to become idle timed out
This problem may be linked to a combination of factors, notably observed in projects using react-native-navigation and reanimated libraries. It appears that the issue has subsided following upgrades to Reanimated (version 3) and React Native (version 0.72). With these updates, the error has not been reproducible in the latest navigation tests.
Despite the apparent resolution, I am keeping this issue open for monitoring purposes. This is to ensure that if anyone experiences this error under different conditions, it can be further investigated.
Of course, if you encounter this issue or a similar synchronization problem, try to investigate it before reporting. There's a high chance it occurs uniquely in your project, and investigating will also help you and us understand the problem better. For guidance, read our troubleshooting guide.