Random test failures
@my8bird posted the following test error:
✖ 1 of 41 tests failed:
1) Iterator db.forRange() should iterate until limit key:
actual expected
107
AssertionError: "107" == ""
at i (/home/nathan/src/node-leveldb/test/iterator-test.coffee:202:18)
at exports.Iterator.Iterator.forRange.next (/home/nathan/src/node-leveldb/lib/leveldb/iterator.js:142:9)
at exports.Iterator.Iterator._wrapSeek (/home/nathan/src/node-leveldb/lib/leveldb/iterator.js:62:28)
I've also been getting intermittent test errors that disappear on the the next run.
@mikepb says:
The tests failures happen randomly. I haven't the time to track down the issue. There's a lot of multithreading involved, that may be the issue.
Found on Travis CI, http://travis-ci.org/#!/my8bird/node-leveldb/jobs/1951750
✖ 1 of 41 tests failed:
1) PartitionedBitwiseComparator with flattened args should have keys in order:
AssertionError: "undefined" == 8
at /home/vagrant/builds/my8bird/node-leveldb/test/comparator-test.coffee:43:18
at /home/vagrant/builds/my8bird/node-leveldb/lib/leveldb/iterator.js:142:9
at /home/vagrant/builds/my8bird/node-leveldb/lib/leveldb/iterator.js:62:28
Here is another failure form CI: http://travis-ci.org/#!/my8bird/node-leveldb/jobs/2016961
1) PartitionedBitwiseComparator with flattened args should have keys in order:
AssertionError: "undefined" == 7
at /home/vagrant/builds/my8bird/node-leveldb/test/comparator-test.coffee:43:18
at /home/vagrant/builds/my8bird/node-leveldb/lib/leveldb/iterator.js:142:9
at /home/vagrant/builds/my8bird/node-leveldb/lib/leveldb/iterator.js:62:28
It is interesting that it is essentially the same error but slightly different
Just noticed that all of the failures on Travis seem to be happening on the Node 0.6 machine.