mirror of https://github.com/nodejs/node.git
test: improve disable AsyncLocalStorage test
PR-URL: https://github.com/nodejs/node/pull/31998 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>pull/32024/head
parent
4c35b62f64
commit
68e36ade3d
|
@ -9,6 +9,9 @@ asyncLocalStorage.runSyncAndReturn(new Map(), () => {
|
|||
asyncLocalStorage.getStore().set('foo', 'bar');
|
||||
process.nextTick(() => {
|
||||
assert.strictEqual(asyncLocalStorage.getStore().get('foo'), 'bar');
|
||||
process.nextTick(() => {
|
||||
assert.strictEqual(asyncLocalStorage.getStore(), undefined);
|
||||
});
|
||||
asyncLocalStorage.disable();
|
||||
assert.strictEqual(asyncLocalStorage.getStore(), undefined);
|
||||
process.nextTick(() => {
|
||||
|
|
Loading…
Reference in New Issue