Skip to content

Fix multiple database instances when using emulator #4247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2020
Merged

Conversation

samtstern
Copy link
Contributor

@samtstern samtstern commented Dec 29, 2020

Discussion

Fixes #3681

Testing

Added new unit test

API Changes

None

@changeset-bot
Copy link

changeset-bot bot commented Dec 29, 2020

🦋 Changeset detected

Latest commit: 30e6996

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@firebase/database Patch
firebase Patch
@firebase/rules-unit-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

Size Analysis Report

Affected Products

No changes between base commit (d638a42) and head commit (2b083d9).

Test Logs

Comment on lines +175 to +177
expect(() => {
defaultApp.database('http://foo.bar.com/');
}).to.throw(/Database initialized multiple times/i);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:( That this is banned makes me sad. But obviously unrelated to the PR.

@samtstern samtstern merged commit 487f8e1 into master Dec 30, 2020
@rhodgkins
Copy link
Contributor

@samtstern thanks for adding this in - any ideas when it'll be released with regards to the firebase-admin package?

@samtstern
Copy link
Contributor Author

@rhodgkins since this is just a patch release once the JS SDK ships (which happens about once a week) the Admin SDK should pick it up automatically as a dependency on a fresh npm install.

@google-oss-bot google-oss-bot mentioned this pull request Jan 5, 2021
@firebase firebase locked and limited conversation to collaborators Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't use multiple RTDB instances with emulator
4 participants