pgte/nock — Issue #25: Most recent version breaks in nano
Author: dscape
Created: 2012-01-04 13:45:40+00:00
State: open

```

> nano@1.1.0 test /Users/dscape/Desktop/dev/nano
> ./node_modules/ensure/bin/tap.js tests/*/*.js

ok destroy.js ....................... 4/4
ok get.js ........................... 3/3
ok insert.js ........................ 4/4
ok pipe.js .......................... 2/2
ok update.js ........................ 4/4
ok changes.js ....................... 4/4
ok compact.js ....................... 4/4
ok create.js ........................ 3/3
ok destroy.js ....................... 3/3
ok get.js ........................... 5/5
ok list.js .......................... 3/3
ok replicate.js ..................... 4/4
ok bulk.js .......................... 5/5
ok destroy.js ....................... 5/5
not ok get.js ...................... 9/10
Command: "node" "get.js"
ok 1 No excs
ok 2 I got rev
ok 3 My id is foo
ok 4 My foo is bar
not ok 5 Nock is done
---
file: /Users/dscape/Desktop/dev/nano/nano.js
line: 165
column: 11
stack:
- getCaller (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:370:17)
- Function.assert (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:17:16)
- Test._testAssert [as ok] (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-test/test.js:86:16)
- /Users/dscape/Desktop/dev/nano/tests/doc/get.js:84:10
- Request._callback (/Users/dscape/Desktop/dev/nano/nano.js:165:11)
- Request.callback (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:108:22)
- Request. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:468:18)
- Request.emit (events.js:67:17)
- EventEmitter. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:429:16)
- EventEmitter.emit (events.js:64:17)
unique: 4
...
ok 6 Err, not here
ok 7 Got revs info
ok 8 Id is food
ok 9 Bar is in foo
ok 10 Nock is done

1..10
# tests 10
# pass 9
# fail 1

ok insert.js ...................... 10/10
not ok list.js .................... 11/14
Command: "node" "list.js"
ok 1 No err
ok 2 3 Rows
ok 3 Got rows
not ok 4 Nock is done
---
file: /Users/dscape/Desktop/dev/nano/nano.js
line: 165
column: 11
stack:
- getCaller (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:370:17)
- Function.assert (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:17:16)
- Test._testAssert [as ok] (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-test/test.js:86:16)
- /Users/dscape/Desktop/dev/nano/tests/doc/list.js:168:10
- Request._callback (/Users/dscape/Desktop/dev/nano/nano.js:165:11)
- Request.callback (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:108:22)
- Request. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:468:18)
- Request.emit (events.js:67:17)
- EventEmitter. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:429:16)
- EventEmitter.emit (events.js:64:17)
unique: 3
...
ok 5 Not Err
ok 6 One Row
ok 7 Out of 3
ok 8 I got Rows
not ok 9 Nock is done
---
file: /Users/dscape/Desktop/dev/nano/nano.js
line: 165
column: 11
stack:
- getCaller (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:370:17)
- Function.assert (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:17:16)
- Test._testAssert [as ok] (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-test/test.js:86:16)
- /Users/dscape/Desktop/dev/nano/tests/doc/list.js:193:10
- Request._callback (/Users/dscape/Desktop/dev/nano/nano.js:165:11)
- Request.callback (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:108:22)
- Request. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:468:18)
- Request.emit (events.js:67:17)
- EventEmitter. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:429:16)
- EventEmitter.emit (events.js:64:17)
unique: 8
...
ok 10 No errs
ok 11 Two rows returned
ok 12 Out of 3
ok 13 That means we got rows
not ok 14 Nock is done
---
file: /Users/dscape/Desktop/dev/nano/nano.js
line: 165
column: 11
stack:
- getCaller (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:370:17)
- Function.assert (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-assert/assert.js:17:16)
- Test._testAssert [as ok] (/Users/dscape/Desktop/dev/nano/node_modules/ensure/node_modules/tap/node_modules/tap-test/test.js:86:16)
- /Users/dscape/Desktop/dev/nano/tests/doc/list.js:214:10
- Request._callback (/Users/dscape/Desktop/dev/nano/nano.js:165:11)
- Request.callback (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:108:22)
- Request. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:468:18)
- Request.emit (events.js:67:17)
- EventEmitter. (/Users/dscape/Desktop/dev/nano/node_modules/request/main.js:429:16)
- EventEmitter.emit (events.js:64:17)
unique: 13
...

1..14
# tests 14
# pass 11
# fail 3

ok update.js ........................ 5/5
ok create.js ........................ 0/0
ok delete.js ........................ 0/0
ok cfg.js ......................... 19/19
ok error.js ......................... 8/8
ok nano.js .......................... 2/2
ok compact.js ....................... 3/3
ok multi-document-fetch.js .......... 5/5
ok query.js ......................... 6/6
total ........................... 157/161

not ok

```

`npm.log`

```
info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'test' ]
info using npm@1.0.106
info using node@v0.6.1
verbose config file /Users/dscape/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
silly testEngine { name: 'nano',
silly testEngine description: 'minimalistic couchdb driver for node.js',
silly testEngine homepage: 'http://github.com/dscape/nano',
silly testEngine repository: { type: 'git', url: 'git://github.com/dscape/nano.git' },
silly testEngine version: '1.1.0',
silly testEngine author:
silly testEngine { name: 'Nuno Job',
silly testEngine email: 'nunojobpinto@gmail.com',
silly testEngine url: 'http://nunojob.com' },
silly testEngine contributors:
silly testEngine [ { name: 'Thiago Arrais',
silly testEngine email: 'thiago.arrais@gmail.com',
silly testEngine url: 'http://thiagoarrais.com' },
silly testEngine { name: 'Derek Perez',
silly testEngine email: 'derek@derekperez.com',
silly testEngine url: 'http://blog.derekperez.com' },
silly testEngine { name: 'Patrick Heneise', url: 'http://patrickheneise.me' },
silly testEngine { name: 'Artur Konarski', url: 'http://tarantoga.com' },
silly testEngine { name: 'Pedro Teixeira',
silly testEngine email: 'pedro.teixeira@gmail.com',
silly testEngine url: 'http://metaduck.com' } ],
silly testEngine keywords:
silly testEngine [ 'couchdb',
silly testEngine 'data',
silly testEngine 'request',
silly testEngine 'json',
silly testEngine 'nosql',
silly testEngine 'micro',
silly testEngine 'nano',
silly testEngine 'database' ],
silly testEngine dependencies: { request: '2.9.3', underscore: '1.2.3' },
silly testEngine devDependencies:
silly testEngine { async: '0.1.15',
silly testEngine ensure: '0.4.6',
silly testEngine nock: '*',
silly testEngine 'tap-runner': '0.0.7',
silly testEngine 'tap-producer': '0.0.1',
silly testEngine tap: '0.1.3',
silly testEngine inherits: '1.0.0',
silly testEngine yamlish: '0.0.2',
silly testEngine slide: '1.1.3' },
silly testEngine scripts: { test: './node_modules/ensure/bin/tap.js tests/*/*.js' },
silly testEngine main: './nano.js',
silly testEngine engines: { node: '>=0.3.6' },
silly testEngine _npmUser: { name: 'dscape', email: 'nunojobpinto@gmail.com' },
silly testEngine _id: 'nano@1.1.0',
silly testEngine _engineSupported: true,
silly testEngine _npmVersion: '1.0.106',
silly testEngine _nodeVersion: 'v0.6.1',
silly testEngine _defaultsLoaded: true }
verbose caching /Users/dscape/Desktop/dev/nano/package.json
verbose loadDefaults nano@1.1.0
verbose run-script [ 'pretest', 'test', 'posttest' ]
info pretest nano@1.1.0
info test nano@1.1.0
verbose unsafe-perm in lifecycle true
silly exec sh "-c" "./node_modules/ensure/bin/tap.js tests/*/*.js"
silly spawning [ 'sh',
silly spawning [ '-c', './node_modules/ensure/bin/tap.js tests/*/*.js' ],
silly spawning '/Users/dscape/Desktop/dev/nano' ]
info nano@1.1.0 Failed to exec test script
ERR! nano@1.1.0 test: `./node_modules/ensure/bin/tap.js tests/*/*.js`
ERR! `sh "-c" "./node_modules/ensure/bin/tap.js tests/*/*.js"` failed with 4
ERR!
ERR! Failed at the nano@1.1.0 test script.
ERR! This is most likely a problem with the nano package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! ./node_modules/ensure/bin/tap.js tests/*/*.js
ERR! You can get their info via:
ERR! npm owner ls nano
ERR! There is likely additional logging output above.
ERR!
ERR! System Darwin 11.2.0
ERR! command "node" "/usr/local/bin/npm" "test"
ERR! cwd /Users/dscape/Desktop/dev/nano
ERR! node -v v0.6.1
ERR! npm -v 1.0.106
ERR! code ELIFECYCLE
verbose exit [ 1, true ]

```