-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Demonstrate issue #3319 #3322
Demonstrate issue #3319 #3322
Conversation
I think this is solved in the latest version. |
@pubkey done, |
Is this solved in the latest release? |
@pubkey apologies, I was unavailable.
I have pushed a rebased version |
There is a similar error when running the current tests many times: https://github.com/pubkey/rxdb/runs/4384515025?check_suite_focus=true |
It looks like in this specific test it happens because |
(docData as any).name = 'foobar'; | ||
|
||
await setLastPullDocument(c, endpointHash, docData); | ||
await c.database.remove(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait. So you remove the database and then query it again? I am not sure if this is supposed to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally that was to show the local documents persist DB removal. Now that they are removed, the question is only if getLastPullDocument
should fail or return null
Not sure why other loki
test error, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running any operation on a removed collection/database should fail.
To query it again, a new RxDatabase must be created.
Running any operation on a removed collection should fail |
Please see issue #3319