Skip to content
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

Tests randomly failing #98

Open
arj03 opened this issue Jan 25, 2021 · 0 comments
Open

Tests randomly failing #98

arj03 opened this issue Jan 25, 2021 · 0 comments

Comments

@arj03
Copy link
Member

arj03 commented Jan 25, 2021

Might be related to appendNew and addMsg using Datetime.now():

Timestamp discontinuity

2021-01-25T12:28:49.200Z jitdb time: 0ms, total items: 3
    ✔ should be strictly equal
2021-01-25T12:28:49.200Z jitdb saving core index: seq
    ✔ 1st ok
2021-01-25T12:28:49.200Z jitdb saving core index: timestamp
2021-01-25T12:28:49.200Z jitdb saving core index: sequence
2021-01-25T12:28:49.201Z jitdb missing indexes: [ { type: 'EQUAL', data: { seek: [Function: seekAuthor], value: <Buffer 40 4c 30 70 5a 55 32 61 4b 6d 66 35 77 62 46 48 50 51 31 56 4f 6b 4e 38 45 74 49 30 70 4e 71 55 30 67 73 58 4b 2b 78 59 66 57 63 45 3d 2e 65 64 32 35 ... >, indexType: 'author', indexName: 'author_me' } } ]
2021-01-25T12:28:49.201Z jitdb time: 0ms, total items: 3
2021-01-25T12:28:49.201Z jitdb saving index: author_me
2021-01-25T12:28:49.201Z jitdb ensureIndexSync author_me is already synced
2021-01-25T12:28:49.201Z jitdb all(): 0ms, total messages: 3

    ✖ 2nd ok
    ---------
      operator: equal
      expected: '2nd'
      actual:   '3rd'
      at: db.all (/home/runner/work/jitdb/jitdb/test/query.js:733:13)
      stack: |-
  Error: 2nd ok
  at Test.assert [as _assert] (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:269:54)
  at Test.bound [as _assert] (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:90:32)
  at Test.strictEqual (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:433:10)
  at Test.bound [as equal] (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:90:32)
  at db.all (/home/runner/work/jitdb/jitdb/test/query.js:733:13)
  at getMessagesFromBitsetSlice (/home/runner/work/jitdb/jitdb/index.js:984:15)
  at CollectStream.push.collect [as _cb] (/home/runner/work/jitdb/jitdb/index.js:937:9)
  at CollectStream.end (/home/runner/work/jitdb/jitdb/node_modules/push-stream/sinks/collect.js:18:13)
  at FilterStream.ThroughStream.end (/home/runner/work/jitdb/jitdb/node_modules/push-stream/throughs/through.js:22:20)
  at AsyncMapStream.end (/home/runner/work/jitdb/jitdb/node_modules/push-stream/throughs/async-map.js:31:18)


    ✖ 3rd ok
    ---------
      operator: equal
      expected: '3rd'
      actual:   '2nd'
      at: db.all (/home/runner/work/jitdb/jitdb/test/query.js:734:13)
      stack: |-
  Error: 3rd ok
  at Test.assert [as _assert] (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:269:54)
  at Test.bound [as _assert] (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:90:32)
  at Test.strictEqual (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:433:10)
  at Test.bound [as equal] (/home/runner/work/jitdb/jitdb/node_modules/tape/lib/test.js:90:32)
  at db.all (/home/runner/work/jitdb/jitdb/test/query.js:734:13)
  at getMessagesFromBitsetSlice (/home/runner/work/jitdb/jitdb/index.js:984:15)
  at CollectStream.push.collect [as _cb] (/home/runner/work/jitdb/jitdb/index.js:937:9)
  at CollectStream.end (/home/runner/work/jitdb/jitdb/node_modules/push-stream/sinks/collect.js:18:13)
  at FilterStream.ThroughStream.end (/home/runner/work/jitdb/jitdb/node_modules/push-stream/throughs/through.js:22:20)
  at AsyncMapStream.end (/home/runner/work/jitdb/jitdb/node_modules/push-stream/throughs/async-map.js:31:18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant