Skip to content

Commit 9325634

Browse files
puzpuzpuzcodebytere
authored andcommittedMar 3, 2020
test: improve disable AsyncLocalStorage test
PR-URL: #31998 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent cd30dbb commit 9325634

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎test/async-hooks/test-async-local-storage-enable-disable.js

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ asyncLocalStorage.runSyncAndReturn(new Map(), () => {
99
asyncLocalStorage.getStore().set('foo', 'bar');
1010
process.nextTick(() => {
1111
assert.strictEqual(asyncLocalStorage.getStore().get('foo'), 'bar');
12+
process.nextTick(() => {
13+
assert.strictEqual(asyncLocalStorage.getStore(), undefined);
14+
});
1215
asyncLocalStorage.disable();
1316
assert.strictEqual(asyncLocalStorage.getStore(), undefined);
1417
process.nextTick(() => {

0 commit comments

Comments
 (0)
Please sign in to comment.