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 <darshan.sen@postman.com>
  • Loading branch information
RaisinTen committed Nov 7, 2021
1 parent cbb274b commit 12abaf7
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 12abaf7

Please sign in to comment.