-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Make test suite suitable for browsers #563
Comments
The bigger issue in levelup - for Sauce Labs browser tests, that is - is the use of How about we replace that with |
That's a good idea. It makes |
Also means no more setup, cleanup and rimraf :) |
Lets try getting this in before releasing 3.0.0? |
Working on it now |
Hmm, some tests rely on the ability to close and reopen the same database (on disk). |
@vweevers Imo the location isn't needed since it doesn't have anything to do with levelup anymore. |
See my edit, hopefully clarifies the problem. |
For example: levelup/test/deferred-open-test.js Lines 134 to 148 in 6614a7c
|
I can rewrite it so it uses one |
This one is tricky: levelup/test/read-stream-test.js Lines 499 to 559 in 6614a7c
|
Ouch. |
My brain is kind of mangled now 😄 |
It's the last remaining test, I'll try to grok it. IMO we should move it to leveldown because the test comment says:
BTW, the test suite is so much faster now. |
The fix for the described problem (39b44bc) nowadays lives in But I don't understand the relation between the two db's in the test. I get that V8 will destroy the db if there are no references left, but I don't get why "this ISN'T a problem if you only have one of them open". By moving the test to leveldown, increasing the test data size, and commenting out |
Ah and nowadays we also have a stream-like buffering mechanism with highWatermark in |
Confirmed. After setting The test has been useless since |
See Level/abstract-leveldown#123 (comment).
The text was updated successfully, but these errors were encountered: