Skip to content
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

Add a test for whether unregistered listeners are called. #618

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jonsimantov
Copy link
Contributor

Description

Provide details of the change, and generalize the change in the PR title above.

Currently, if you unregister a listener from a given DatabaseReference, it will correctly stop calling that listener.

But if you unregister a listener from a different instance of DatabaseReference that happens to point to the same path, it will continue to call the listener. (Because it's not considered the same object.)

This test shows that issue - it should not be merged unless the issue is either fixed or the failing test is disabled.


Testing

Describe how you've tested these changes.

Integration tests.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

@jonsimantov jonsimantov added the tests-requested: quick Trigger a quick set of integration tests. label Feb 1, 2023
@jonsimantov jonsimantov removed the tests-requested: quick Trigger a quick set of integration tests. label Feb 1, 2023
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Feb 1, 2023
@github-actions
Copy link

github-actions bot commented Feb 1, 2023

❌  Integration test FAILED

Requested by @jonsimantov on commit refs/pull/618/merge
Last updated: Wed Feb 1 13:20 PST 2023
View integration test log & download artifacts

Failures Configs
database [TEST] [FAILURE] [2020] [All 2 Build OS(s)] [All 6 Platform(s)] [All 3 Test Device(s)]

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Feb 1, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant