-
Notifications
You must be signed in to change notification settings - Fork 4
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
expected Scuttlebutt #2
Comments
will work if you wait until the db has opened before opening scuttlebutt. |
doesn't levelup already buffer all calls? |
You mean like: var levelup = require('levelup');
var levelScuttlebutt = require('level-scuttlebutt');
var Model = require('scuttlebutt/model');
var udid = require('udid');
levelup(__dirname + '/db', function (err, db) {
if (err) throw err;
levelScuttlebutt(db, udid, function (name) {
return new Model();
});
db.scuttlebutt.open('some-name', function (err, model) {});
}); ...? That still throws:
|
Btw the map-reduce test fails on my machine. Also I saw that your tests use the var db = levelup(path) pattern too? |
I removed that because I thought it was breaking other stuff. I'll look into this soon. I'll move reverting this to the top of my list. |
Hey, I added a test for this, but your code isn't breaking. |
I just updated and reinstalled all dependencies. I still get this output:
|
Maybe its a race condition? |
We should have something like browserling for this, or a travis-ci with different operating systems and simulated hardware |
cool, reproduced! Okay, it's now hanging on the map-reduce test, but the others are passing. was there something about levelup taking too long to compile to work with travis-ci ? I think @rvagg mentioned something about that? |
I vaguely remember something about things taking too long and Travis timing out but if that was a problem it hasn't been for a long time now. Travis is happy with LevelUP and hasn't complained. |
My installed version of levelup is 0.5.4 |
ok, I think that we fixed some issues in this area in that version but shifting to 0.6 wouldn't hurt |
I just updated to 0.6.0 and it still fails with the same error 🐹 |
same issue? dominictarr/level-map#1 |
levelup@0.6.1 ought to fix this. |
sweet, I don't get an error any more! Now the map-reduce test never finishes :O t.end() is called but it still continues mapping and reducing |
hmm, well I update levelup in I'm planning a refactor that will simplify the interaction between level-scuttlebutt and map-reduce, |
This
can be reproduced by this:
Has the API changed?
The text was updated successfully, but these errors were encountered: