From 12abaf7e8a9a9b7cd91e9629a24d5c6844b9b81e Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Sun, 7 Nov 2021 13:41:42 +0530 Subject: [PATCH] test: use the variable for store Signed-off-by: Darshan Sen --- test/async-hooks/test-async-local-storage-socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async-hooks/test-async-local-storage-socket.js b/test/async-hooks/test-async-local-storage-socket.js index dd89157d0f04de..93c8cbe97b683c 100644 --- a/test/async-hooks/test-async-local-storage-socket.js +++ b/test/async-hooks/test-async-local-storage-socket.js @@ -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);