-
Notifications
You must be signed in to change notification settings - Fork 13
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
(#61) - fix concurrent batch del while iterating #61
Conversation
8e77b4f
to
8c9a0b3
Compare
The test fails before the fix, but succeeds after. Also added some other tests just as a nice-to-have.
Yeah okay, figured it out and found a failing test. Note to self: donate the failing test to abstract-leveldown and memdown. |
8c9a0b3
to
f6e7426
Compare
The test fails before the fix, but succeeds after. Also added some other tests just as a nice-to-have.
}); | ||
}); | ||
}); |
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.
^ this is the test that needs to be donated
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.
in other libraries they will have a snapshot and it will be b not c
These tests sussed out bugs in localstorage-down (No9/localstorage-down#61) and memdown (Level/memdown#20), so they may be useful to add to abstract-leveldown.
The test fails before the fix, but succeeds after. Also added some other tests just as a nice-to-have.
f6e7426
to
adde547
Compare
These tests sussed out bugs in localstorage-down (No9/localstorage-down#61) and memdown (Level/memdown#20), so they may be useful to add to abstract-leveldown.
just check for undefined instead of |
👍 |
woot, thanks! |
These tests sussed out bugs in localstorage-down (No9/localstorage-down#61) and memdown (Level/memdown#20), so they may be useful to add to abstract-leveldown.
Based on the localStorage-only failures in pouchdb/pouchdb#2846, I've been trying to figure out if there's a race condition in localstorage-down.
I noticed @calvinmetcalf's fix in memdown (Level/memdown@8a3c6a0), but after copying the test and the fix over, it doesn't seem to have an impact here. The test was already passing before. Added another test, but same story - it was already passing.