diff --git a/test/async-hooks/test-async-local-storage-enable-disable.js b/test/async-hooks/test-async-local-storage-enable-disable.js index 15ab2f5d9ebbb2..c7248d6cec40a8 100644 --- a/test/async-hooks/test-async-local-storage-enable-disable.js +++ b/test/async-hooks/test-async-local-storage-enable-disable.js @@ -24,8 +24,8 @@ asyncLocalStorage.run(new Map(), () => { process.nextTick(() => { assert.strictEqual(asyncLocalStorage.getStore(), undefined); - asyncLocalStorage.run(new Map(), () => { - assert.notStrictEqual(asyncLocalStorage.getStore(), undefined); + asyncLocalStorage.run(new Map().set('bar', 'foo'), () => { + assert.strictEqual(asyncLocalStorage.getStore().get('bar'), 'foo'); }); }); });