Skip to content

Commit

Permalink
test: use the variable for store
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan Sen <[email protected]>
  • Loading branch information
RaisinTen committed Nov 7, 2021
1 parent f70bda8 commit 5ab8518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/async-hooks/test-async-local-storage-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ net
.listen(0, function() {
const asyncLocalStorage = new AsyncLocalStorage();
const store = { val: 'abcd' };
asyncLocalStorage.run({ val: 'abcd' }, () => {
asyncLocalStorage.run(store, () => {
const client = net.connect({ port: this.address().port });
client.on('data', () => {
assert.deepStrictEqual(asyncLocalStorage.getStore(), store);
Expand Down

0 comments on commit 5ab8518

Please sign in to comment.