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

6 of 7 unit tests fail with node v0.8.12 #2

Open
shane-tomlinson opened this issue Aug 16, 2013 · 0 comments
Open

6 of 7 unit tests fail with node v0.8.12 #2

shane-tomlinson opened this issue Aug 16, 2013 · 0 comments

Comments

@shane-tomlinson
Copy link

➜ connect-postprocess git:(master) node --version
v0.8.12
➜ connect-postprocess git:(master) ✗ npm test

postprocess@0.2.4 test /Users/stomlinson/development/connect-postprocess
mocha

․․․․․․․

✖ 6 of 7 tests failed:

  1. postprocess should handle 404s:
    TypeError: Converting circular structure to JSON
    at Object.stringify (native)
    at fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:62:24)
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  2. postprocess should substitute properly for basic.txt:
    AssertionError: expected {} to equal 4
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:76:30
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  3. postprocess should substitute properly for boundary.txt:
    AssertionError: expected {} to equal 288011
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:76:30
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  4. postprocess should substitute properly for complex.js:
    AssertionError: expected {} to equal 283461
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:76:30
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  5. postprocess should not interfere with the semantics of write():
    AssertionError: expected { '0': 'b', '1': 'a', '2': 'r', '3': 'b', '4': 'a', '5': 'r' } to equal 'barbar'
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:85:21
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  6. postprocess should not interfere with the semantics of end():
    Error: timeout of 2000ms exceeded
    at Object. (/Users/stomlinson/development/nvm/v0.8.12/lib/node_modules/mocha/lib/runnable.js:167:14)
    at Timer.list.ontimeout (timers.js:101:19)

npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
➜ connect-postprocess git:(master) ✗ npm test

postprocess@0.2.4 test /Users/stomlinson/development/connect-postprocess
mocha

․․․․․․․

✖ 6 of 7 tests failed:

  1. postprocess should handle 404s:
    AssertionError: expected {} to equal 404
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:62:33)
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  2. postprocess should substitute properly for basic.txt:
    AssertionError: expected {} to equal 4
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:75:30
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  3. postprocess should substitute properly for boundary.txt:
    AssertionError: expected {} to equal 288011
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:75:30
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  4. postprocess should substitute properly for complex.js:
    AssertionError: expected {} to equal 283461
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:75:30
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  5. postprocess should not interfere with the semantics of write():
    AssertionError: expected { '0': 'b', '1': 'a', '2': 'r', '3': 'b', '4': 'a', '5': 'r' } to equal 'barbar'
    at Object.Assertion.equal (/Users/stomlinson/development/connect-postprocess/node_modules/should/lib/should.js:297:10)
    at /Users/stomlinson/development/connect-postprocess/test/test.js:84:21
    at IncomingMessage.fs.readdirSync.forEach.l (/Users/stomlinson/development/connect-postprocess/test/test.js:52:9)
    at IncomingMessage.EventEmitter.emit (events.js:123:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete as onMessageComplete
    at Socket.socketOnData as ondata
    at TCP.onread (net.js:403:27)

  6. postprocess should not interfere with the semantics of end():
    Error: timeout of 2000ms exceeded
    at Object. (/Users/stomlinson/development/nvm/v0.8.12/lib/node_modules/mocha/lib/runnable.js:167:14)
    at Timer.list.ontimeout (timers.js:101:19)

npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
➜ connect-postprocess git:(master)

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

Successfully merging a pull request may close this issue.

1 participant