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

test broken on master #30

Open
kumavis opened this issue May 16, 2019 · 1 comment
Open

test broken on master #30

kumavis opened this issue May 16, 2019 · 1 comment

Comments

@kumavis
Copy link
Contributor

kumavis commented May 16, 2019

kitsunet-js on ξ‚  master [!] is πŸ“¦ v0.0.1 via β¬’ v10.15.3 took 58s 
➜ npm test

> [email protected] test /home/xyz/Development/kitsunet-js
> aegir test

Test Node.js
Warning: Could not find any test files matching pattern: test/node.js


  kitsunet rpc
    1) should encode IDENTIFY message
    2) should encode SLICE_ID message
    3) should encode SLICES message
    4) should encode HEADERS message
    5) should encode LATEST_BLOCK message
    6) should encode NODE_TYPE message

  slice manager
    7) should track slices
    8) should untrack slices
    9) should store slices
    βœ“ should get slice by id
    βœ“ should get latest slice
    βœ“ should get slice by block
    βœ“ should start
    βœ“ should stop

  slice
    βœ“ should construct a valid slice id
    βœ“ should construct a valid slice from string id
    βœ“ should construct slice from buffer
    βœ“ should construct slice from string
    βœ“ should construct slice from object

  sliced trie
    βœ“ should retrieve key from trie


  11 passing (61ms)
  9 failing

  1) kitsunet rpc
       should encode IDENTIFY message:
     TypeError: Cannot read property 'identify' of undefined
      at Context.it (test/kitsunet-rpc.spec.js:45:55)

  2) kitsunet rpc
       should encode SLICE_ID message:
     TypeError: Cannot read property 'sliceIds' of undefined
      at Context.it (test/kitsunet-rpc.spec.js:65:55)

  3) kitsunet rpc
       should encode SLICES message:
     TypeError: Cannot read property 'slices' of undefined
      at Context.it (test/kitsunet-rpc.spec.js:85:53)

  4) kitsunet rpc
       should encode HEADERS message:
     TypeError: Cannot read property 'headers' of undefined
      at Context.it (test/kitsunet-rpc.spec.js:105:54)

  5) kitsunet rpc
       should encode LATEST_BLOCK message:
     TypeError: Cannot read property 'latestBlock' of undefined
      at Context.it (test/kitsunet-rpc.spec.js:125:58)

  6) kitsunet rpc
       should encode NODE_TYPE message:
     TypeError: Cannot read property 'type' of undefined
      at Context.it (test/kitsunet-rpc.spec.js:145:51)

  7) slice manager
       should track slices:
     AssertionError [ERR_ASSERTION]: slicesStore should be supplied
      at new SliceManager (src/slice-manager.js:18:5)
      at Context.it (test/slice-manager.spec.js:34:26)

  8) slice manager
       should untrack slices:
     AssertionError [ERR_ASSERTION]: slicesStore should be supplied
      at new SliceManager (src/slice-manager.js:18:5)
      at Context.it (test/slice-manager.spec.js:57:26)

  9) slice manager
       should store slices:
     AssertionError [ERR_ASSERTION]: slicesStore should be supplied
      at new SliceManager (src/slice-manager.js:18:5)
      at Context.it (test/slice-manager.spec.js:73:26)



Command failed: mocha --ui bdd --timeout 5000 --colors --exit test/node.js test/**/*.spec.js
null
null
npm ERR! Test failed.  See above for more details.

we should setup CI? related #12

@dryajov
Copy link
Member

dryajov commented May 16, 2019

Test are outdated and are rewitten in #29.

Definitely on CI. I'll set something up in the upcoming days, after #29 is merged.

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

2 participants