Skip to content

Instantly share code, notes, and snippets.

@ryanstevens
Created November 4, 2011 08:59
Show Gist options
  • Save ryanstevens/1338955 to your computer and use it in GitHub Desktop.
Save ryanstevens/1338955 to your computer and use it in GitHub Desktop.
Testling runtime test eror (error in my test file)
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object function (name, cb) {
if (typeof name === 'function') {
cb = name;
name = undefined;
}
var t = new Test(name, test.push);
pending ++;
t.on('testEnd', function () {
pending --;
process.nextTick(function () {
if (pending <= 0) t.push('end', {});
harness.emit('end', t);
});
});
cb(t);
} has no method 'output'
at Function.<anonymous> (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/lib/run.js:19:18)
at Function.<anonymous> (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:447:24)
at Function.<anonymous> (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:210:38)
at action (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:76:11)
at Function.next (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:208:17)
Copy link

ghost commented Nov 4, 2011

All fixed in testling@0.0.1. Silly race condition setting the output plugin was responsible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment