Skip to content

Commit 12abaf7

Browse files
committed
test: use the variable for store
Signed-off-by: Darshan Sen <[email protected]>
1 parent cbb274b commit 12abaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async-hooks/test-async-local-storage-socket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ net
1414
.listen(0, function() {
1515
const asyncLocalStorage = new AsyncLocalStorage();
1616
const store = { val: 'abcd' };
17-
asyncLocalStorage.run({ val: 'abcd' }, () => {
17+
asyncLocalStorage.run(store, () => {
1818
const client = net.connect({ port: this.address().port });
1919
client.on('data', () => {
2020
assert.deepStrictEqual(asyncLocalStorage.getStore(), store);

0 commit comments

Comments
 (0)