diff --git a/test/addons/async-hello-world/test.js b/test/addons/async-hello-world/test.js index 535d1ab797..83f5e7206e 100644 --- a/test/addons/async-hello-world/test.js +++ b/test/addons/async-hello-world/test.js @@ -1,7 +1,15 @@ var assert = require('assert'); var binding = require('./build/Release/binding'); +var called = false; + +process.on('exit', function () { + assert(called); +}); + binding(5, function (err, val) { assert.equal(null, err); assert.equal(10, val); - console.error('done :)'); + process.nextTick(function () { + called = true; + }); });