connection to emulator firestore instance timeouts after upgrading testing library from 0.16.0 to 0.16.1 or 0.16.2.
Below code timeouts after upgrading from "@firebase/testing": "0.16.0" to "@firebase/testing": "0.16.1"
Start firestore emulator firebase emulators:start --only firestore
import * as firebase from '@firebase/testing';
const app = firebase.initializeAdminApp({ projectId: 'testing' });
const db = app.firestore();
db.collection('test')
.doc('doc1')
.set({ ok: true })
.then(ref => console.log('set succeeded'))
.catch(err => console.error('set errored', err));
Thank you for taking time filling this issue. I was able to get the same behavior (https://github.com/rommelpe/2417), and it seems that it persists in v0.16.2. I created an internally report (b/145917871) to see what's causing the issue. I'll let you know once I have an update.
This is now fixed on master and will be included in the next release this week.
Rolled back to 16.0 in the meantime as well
This is now fixed in 0.16.3.