diff --git a/test/caching.unit.js b/test/caching.unit.js index 6adb2ee..1c9fa32 100644 --- a/test/caching.unit.js +++ b/test/caching.unit.js @@ -10,7 +10,9 @@ var memoryStore = require('../lib/stores/memory'); var methods = { getWidget: function(name, cb) { - cb(null, {name: name}); + process.nextTick(function() { + cb(null, {name: name}); + }); } }; diff --git a/test/multi_caching.unit.js b/test/multi_caching.unit.js index a664ef0..5c425fa 100644 --- a/test/multi_caching.unit.js +++ b/test/multi_caching.unit.js @@ -9,7 +9,9 @@ var memoryStore = require('../lib/stores/memory'); var methods = { getWidget: function(name, cb) { - cb(null, {name: name}); + process.nextTick(function() { + cb(null, {name: name}); + }); } };