A LevelUP compatible leaderless multi-master database with eventual consistency, using hyperbee + CRDT + HLC. Similarly CockroachDB achieves replication on top of RocksDB, but here it is a pure P2P **streaming** database, with zero central management. LevelDB compatibility allows to use Dynalite on top to achieve DynamoDB compatibility with sophisticated auto-updated secondary indexes, and fairly complex queries. Work on Dynalite is almost completed to remove HTTP server, to make this combination perfect for serverless.
Hi please help me with this error on node version 12.0.0 and also on 14.16.0
shikharsrivastava@Shikhars-MacBook-Pro multi-hyperbee % npm run test
multi-hyperbee@1.0.0 test /Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee
tape test/*.test.js && tape test/peerRestoreAndCleanup.js
TAP version 13
Multihyperbee - connected via hyperswarm
ok 1 should be deeply equivalent
ok 2 should be deeply equivalent
ok 3 should be deeply equivalent
ok 4 should be deeply equivalent
ok 5 should be deeply equivalent
ok 6 should be deeply equivalent
ok 7 should be deeply equivalent
ok 8 should be deeply equivalent
ok 9 should be deeply equivalent
Multihyperbee - connected via hyperswarm - create object with the same key on 2 devices
ok 10 should be deeply equivalent
ok 11 should be deeply equivalent
ok 12 should be deeply equivalent
ok 13 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 16 should be deeply equivalent
ok 17 should be deeply equivalent
not ok 18 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 19 should be deeply equivalent
ok 20 should be deeply equivalent
not ok 21 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 22 should be deeply equivalent
ok 23 should be deeply equivalent
not ok 24 (unnamed assert)
operator: fail
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:79:15)
stack: |-
Error: (unnamed assert)
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.fail (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:398:10)
at Test.bound [as fail] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:79:15)
at Readable.emit (events.js:196:13)
at ReadableState.updateNonPrimary (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:338:14)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:330:69)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 25 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 26 should be deeply equivalent
ok 27 should be deeply equivalent
not ok 28 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', gender: 'F', country: { name: 'United States', code: 'US' }, nickname: 'Jenny', friends: [ 'Claire', 'Kate', 'Martha', 'Maggie', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 29 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'Jane', lastName: 'Smith', gender: 'F', country: { name: 'United States' }, nickname: 'Jenny', friends: [ 'Claire', 'Kate', 'Martha', 'Maggie', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 30 should be deeply equivalent
not ok 31 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', gender: 'F', country: { name: 'United States', code: 'US' }, nickname: 'Jenny', friends: [ 'Claire', 'Kate', 'Martha', 'Maggie', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 32 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'Jane', lastName: 'Smith', gender: 'F', country: { name: 'United States' }, nickname: 'Jenny', friends: [ 'Claire', 'Kate', 'Martha', 'Maggie', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 33 should be deeply equivalent
not ok 34 (unnamed assert)
operator: fail
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:79:15)
stack: |-
Error: (unnamed assert)
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.fail (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:398:10)
at Test.bound [as fail] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:79:15)
at Readable.emit (events.js:196:13)
at ReadableState.updateNonPrimary (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:338:14)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:330:69)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 35 should be deeply equivalent
ok 36 should be deeply equivalent
not ok 37 should be deeply equivalent
operator: deepEqual
expected: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { nickname: 'Jenny' }, insert: { add: { friends: [ [Object], [Object] ], country: { code: 'US' } } } } }
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 38 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { lastName: 'Smith', gender: 'F', firstName: 'Jane', country: { name: 'United States' } } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 39 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 40 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { lastName: 'Smith', gender: 'F', firstName: 'Jane', country: { name: 'United States' } } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 41 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { nickname: 'Jenny' }, insert: { add: { friends: [ [Object], [Object] ], country: { code: 'US' } } } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 42 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { nickname: 'Jenny' }, insert: { add: { friends: [ [Object], [Object] ], country: { code: 'US' } } } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
not ok 43 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ obj: { _objectId: 'Contact/r1' }, list: { add: { nickname: 'Jenny' }, insert: { add: { friends: [ [Object], [Object] ], country: { code: 'US' } } } } }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:96:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
Multihyperbee - auto-generate diff
not ok 44 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 45 should be deeply equivalent
ok 46 should be deeply equivalent
ok 47 should be deeply equivalent
not ok 48 should be deeply equivalent
operator: deepEqual
expected: |-
undefined
actual: |-
{ _objectId: 'Contact/r1', firstName: 'J', lastName: 'S', friends: [ 'Claire', 'Martha', 'Jake', 'Sean' ] }
at: Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
stack: |-
Error: should be deeply equivalent
at Test.assert [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:304:54)
at Test.bound [as _assert] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Test.tapeDeepEqual (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:545:10)
at Test.bound [as same] (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/tape/lib/test.js:91:32)
at Readable.<anonymous> (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/test/helpers.js:74:13)
at Readable.emit (events.js:196:13)
at ReadableState.drain (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:308:64)
at ReadableState.update (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:316:10)
at ReadableState.afterRead (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/streamx/index.js:469:58)
at pushNT (/Users/shikharsrivastava/Desktop/dwebprotocol/multi-hyperbee/node_modules/hyperbee/index.js:791:5)
...
ok 49 should be deeply equivalent
ok 50 should be deeply equivalent
ok 51 should be deeply equivalent
ok 52 should be deeply equivalent
ok 53 should be deeply equivalent
ok 54 should be deeply equivalent
ok 55 should be deeply equivalent
1..55
tests 55
pass 36
fail 19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! multi-hyperbee@1.0.0 test: tape test/*.test.js && tape test/peerRestoreAndCleanup.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the multi-hyperbee@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/shikharsrivastava/.npm/_logs/2021-05-13T15_23_11_873Z-debug.log
shikharsrivastava@Shikhars-MacBook-Pro multi-hyperbee %
Hi please help me with this error on node version 12.0.0 and also on 14.16.0
shikharsrivastava@Shikhars-MacBook-Pro multi-hyperbee % npm run test
TAP version 13
Multihyperbee - connected via hyperswarm
ok 1 should be deeply equivalent ok 2 should be deeply equivalent ok 3 should be deeply equivalent ok 4 should be deeply equivalent ok 5 should be deeply equivalent ok 6 should be deeply equivalent ok 7 should be deeply equivalent ok 8 should be deeply equivalent ok 9 should be deeply equivalent
Multihyperbee - connected via hyperswarm - create object with the same key on 2 devices
ok 10 should be deeply equivalent ok 11 should be deeply equivalent ok 12 should be deeply equivalent ok 13 should be deeply equivalent
Multihyperbee - value should be JSON object
ok 14 /value expected to be JSON object/
Multihyperbee - persistent storage, basic functionality
not ok 15 should be deeply equivalent
... ok 16 should be deeply equivalent ok 17 should be deeply equivalent not ok 18 should be deeply equivalent
... ok 19 should be deeply equivalent ok 20 should be deeply equivalent not ok 21 should be deeply equivalent
... ok 22 should be deeply equivalent ok 23 should be deeply equivalent not ok 24 (unnamed assert)
... not ok 25 should be deeply equivalent
... ok 26 should be deeply equivalent ok 27 should be deeply equivalent not ok 28 should be deeply equivalent
... not ok 29 should be deeply equivalent
... ok 30 should be deeply equivalent not ok 31 should be deeply equivalent
... not ok 32 should be deeply equivalent
... ok 33 should be deeply equivalent not ok 34 (unnamed assert)
... ok 35 should be deeply equivalent ok 36 should be deeply equivalent not ok 37 should be deeply equivalent
... not ok 38 should be deeply equivalent
... not ok 39 should be deeply equivalent
... not ok 40 should be deeply equivalent
... not ok 41 should be deeply equivalent
... not ok 42 should be deeply equivalent
... not ok 43 should be deeply equivalent
...
Multihyperbee - auto-generate diff
not ok 44 should be deeply equivalent
... ok 45 should be deeply equivalent ok 46 should be deeply equivalent ok 47 should be deeply equivalent not ok 48 should be deeply equivalent
... ok 49 should be deeply equivalent ok 50 should be deeply equivalent ok 51 should be deeply equivalent ok 52 should be deeply equivalent ok 53 should be deeply equivalent ok 54 should be deeply equivalent ok 55 should be deeply equivalent
1..55
tests 55
pass 36
fail 19
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! multi-hyperbee@1.0.0 test:
tape test/*.test.js && tape test/peerRestoreAndCleanup.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the multi-hyperbee@1.0.0 test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/shikharsrivastava/.npm/_logs/2021-05-13T15_23_11_873Z-debug.log shikharsrivastava@Shikhars-MacBook-Pro multi-hyperbee %