Skip to content

Instantly share code, notes, and snippets.

@hayes hayes/AL_bug.js
Created Oct 23, 2014

Embed
What would you like to do?
'use strict';
var test = require('tap').test;
var tracer = require('tracing')
test("async listener lifecycle", function (t) {
t.plan(1);
var count = 0
setTimeout(function() {
tracer.addAsyncListener({
create : function () { count++ }
});
}, 0);
setTimeout(function() {
process.nextTick(function() {
t.equal(count, 0)
t.end()
})
}, 15)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.