Repository navigation
Default timeout is 60s + user define custom timeout per emulator - #3482
erikologic wants to merge 3 commits into
Conversation
| } | ||
|
|
||
| export async function startAll(options: any, showUI: boolean = true): Promise<void> { | ||
| /** |
There was a problem hiding this comment.
linting no-sense...
|
@mrenrich84 thanks for this! I am in favor of increasing the timeout to 60s but not yet convinced that adding a Would you mind reducing this PR to just the 30s --> 60s change and then we can have a separate discussion about the |
|
😆 😆 😆 |
|
@mrenrich84 I think an env var brings up the same discussion. I'd like to think about a few things before moving forward with more configuration:
|
|
There are few conflicts with the main branch and I'm too lazy to get lost in merge/rebase now 😛 |
Description
Fix #2379
Firestore is failing to start in the hardcoded timeout of 30 secs.
This PR:
Scenarios Tested
GIVEN a user does not provide a timeout
WHEN
firebase emulators:startis calledTHEN firestore emulator will fail to run with
Error: TIMEOUT: Port 8081 on localhost was not active within 60000msGIVEN a user provides a timeout in
firebase.jsonfor firestore of 10msWHEN
firebase emulators:start --only firestoreis calledTHEN firestore emulator will fail to run with
Error: TIMEOUT: Port 8081 on localhost was not active within 10msGIVEN a user provides a timeout in
firebase.jsonfor hosting of 10msWHEN
firebase emulators:start --only firestoreis calledTHEN firestore emulator will fail to run with
Error: TIMEOUT: Port 8081 on localhost was not active within 60000ms**I understand these is a bit flacky - couldn't think any better at midnight 😛
I actually tested them with the old value of 30 secs
Sample Commands
In
firebase.json: