Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9325634

Browse filesBrowse files
puzpuzpuzcodebytere
authored andcommitted
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
Copy full SHA for 9325634

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/async-hooks/test-async-local-storage-enable-disable.js
+3Lines changed: 3 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.