You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to run a simple test on a cross platform application using react-native and firebase. But when running tests they take an unreasonably long time to load, up to +90000ms between each test and each state, sometimes even reaching the timeout limit.
Without firebase dependencies the issue disappears.
This does not occur with the provided example app on the same computer.
Steps to Reproduce
Have an app set up using expo, firebase and react-native
Run test
Grab coffee, take a brake and then a lunch
See result
Detox, Node, Device, Xcode and macOS Versions
Detox: 9.0.6
React Native: 31.0.1
Node: 10.14.2
Device: EXPO; N/A
Xcode: N/A
macOS: Mojave 10.14.1
Firebase: 5.7.0
Firestore: 0.9.0
Device and verbose Detox logs
Mac-Pro:MyApp andbrobro$ npm run e2e
> @ e2e /Users/andbrobro/MyApp
> detox test --configuration ios.sim
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim --grep :android: --invert --artifacts-location "artifacts/ios.sim.2018-12-21 15-20-26Z"
detox[41771] INFO: [DetoxServer.js] server listening on localhost:64998...
Login
1) "before each" hook for "should show login button"
0 passing (20m)
1 failing
1) Login
"before each" hook for "should show login button":
Error: Timeout of 1200000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/andbrobro/MyApp/e2e/login.spec.js)
child_process.js:656
throw err;
^
Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim --grep :android: --invert --artifacts-location "artifacts/ios.sim.2018-12-21 15-20-26Z"
at checkExecSyncError (child_process.js:616:11)
at Object.execSync (child_process.js:653:13)
at runMocha (/Users/andbrobro/MyApp/node_modules/detox/local-cli/detox-test.js:129:6)
at run (/Users/andbrobro/MyApp/node_modules/detox/local-cli/detox-test.js:82:7)
at Object.<anonymous> (/Users/andbrobro/MyApp/node_modules/detox/local-cli/detox-test.js:217:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ e2e: `detox test --configuration ios.sim`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ e2e script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/andbrobro/.npm/_logs/2018-12-21T15_40_45_224Z-debug.log
This kind of question has been discussed here in the issue tracker multiple times, and is also mentioned in documentation.
Read the docs re synchronization, read other issues, and use debug synchronization to identify the problem.
@rotemmiz: I'm also having the same issue and saw firestore.googleapis.com in the log when running with --debug-synchronization 1000. I added .*firestore.* to the URL blacklist which stopped the log messages, but the tests run equally as slow.
Removing all firebase imports in my components makes the tests run normally.
lockbot
locked as resolved and limited conversation to collaborators
Dec 24, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
We are trying to run a simple test on a cross platform application using
react-native
andfirebase
. But when running tests they take an unreasonably long time to load, up to+90000ms
between each test and each state, sometimes even reaching the timeout limit.Without firebase dependencies the issue disappears.
This does not occur with the provided example app on the same computer.
Steps to Reproduce
expo
,firebase
andreact-native
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
Long version:
The text was updated successfully, but these errors were encountered: