node-leveldb icon indicating copy to clipboard operation
node-leveldb copied to clipboard

Random test failures

Open justmoon opened this issue 13 years ago • 4 comments

@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.

justmoon avatar Jul 25 '12 05:07 justmoon

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

my8bird avatar Jul 25 '12 15:07 my8bird

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

my8bird avatar Aug 02 '12 14:08 my8bird

It is interesting that it is essentially the same error but slightly different

my8bird avatar Aug 02 '12 14:08 my8bird

Just noticed that all of the failures on Travis seem to be happening on the Node 0.6 machine.

justmoon avatar Aug 05 '12 00:08 justmoon