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);