Detox icon indicating copy to clipboard operation
Detox copied to clipboard

Test is not terminated until timeout

Open bilalbugrauysal opened this issue 3 years ago • 3 comments

What happened?

The test is not completed when it reached to end of the code execution. Test gets stuck until jest timeout is exceeded. After that, it logs the following

ERROR: Exceeded timeout of 40000ms while handling jest-circus "test_done" event
INFO:  Example: should have welcome screen [OK]
ERROR: Exceeded timeout of 40000ms while handling jest-circus "test_done" event

What was the expected behaviour?

The test should be completed when it reaches the end of the test code

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?

Help us reproduce this issue!

The issue can be reproducible in the following repo.

https://github.com/bilalbugrauysal/RNAppForTesting

In what environment did this happen?

Detox version: 19.8.4 React Native version: 0.69.3 Node version: v16.15.1 Device model: Emulator - Pixel 5.0 1080x1920 420dpi Android version: Android 9.0 x86 Test-runner: [email protected]

Detox logs

https://github.com/bilalbugrauysal/RNAppForTesting/blob/master/e2e/artifacts/android.2022-08-02%2013-05-55Z/detox_pid_34244.log

Device logs

https://github.com/bilalbugrauysal/RNAppForTesting/blob/master/e2e/artifacts/android.2022-08-02%2013-05-55Z/%E2%9C%93%20Example%20should%20have%20welcome%20screen/device.log

More data, please!

No response

bilalbugrauysal avatar Aug 02 '22 13:08 bilalbugrauysal

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 reporsitory, read this discussion.

stale[bot] avatar Sep 08 '22 16:09 stale[bot]

I see I'm having the same problem so I'm wondering if a solution has been found for this?

dmitriy-brikov avatar Sep 17 '22 12:09 dmitriy-brikov

Disable instruments recording.

@d4vidi shall we remove instruments plugin at all, maybe?

noomorph avatar Sep 18 '22 13:09 noomorph

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.

stale[bot] avatar Oct 18 '22 23:10 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Oct 30 '22 09:10 stale[bot]