detox test fail on app launch on Android emulator
What happened?
sometimes tests do not run due to the following error and have to restart the emulator to get it to work, this is random.
15:41:46.322 detox[12520] B ws-server connection :53463<->:53613
15:41:46.328 detox[12520] i ws-server Caught unhandled error:
error: Action dispatched too early, there is no session to use:
HINT: Please report this issue on our GitHub tracker:
https://github.com/wix/Detox/issues
{
messageId: -10000,
type: 'AppWillTerminateWithError'
What was the expected behaviour?
it should run the tests
Was it tested on latest Detox?
- [X] I have tested this issue on the latest Detox release and it still reproduces.
Did your test throw out a timeout?
- [X] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.
Help us reproduce this issue!
await device.launchApp({
launchArgs: { detoxEnableSynchronization: 0 },
newInstance: true,
});
In what environment did this happen?
Detox version: 20.13.5 React Native version: 0.67 Has Fabric (React Native's new rendering system) enabled: No Node version: 21.1.0 Device model: Pixel 4 emulator Android version: 13 Test-runner (select one): jest
Detox logs
Detox logs
paste logs here!
Device logs
Device logs
paste your device.log here!
More data, please!
No response
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions!
For more information on bots in this repository, read this discussion.