We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 042ae4a commit b726776Copy full SHA for b726776
2 files changed
test/parallel/test-net-connect-options-fd.js
@@ -83,14 +83,13 @@ const forAllClients = (cb) => common.mustCall(cb, CLIENT_VARIANTS);
83
path: serverPath
84
});
85
const getConnectCb = (index) => common.mustCall(function clientOnConnect() {
86
- const client = this;
87
// Test if it's wrapping an existing fd
88
assert(handleMap.has(index));
89
const oldHandle = handleMap.get(index);
90
assert.strictEqual(oldHandle.fd, this._handle.fd);
91
- client.write(String(oldHandle.fd));
+ this.write(String(oldHandle.fd));
92
console.error(`[Pipe]Sending data through fd ${oldHandle.fd}`);
93
- client.on('error', function(err) {
+ this.on('error', function(err) {
94
console.error(err);
95
assert.fail(null, null, `[Pipe Client]${err}`);
96
test/parallel/test-net-connect-options-path.js
@@ -20,9 +20,8 @@ const CLIENT_VARIANTS = 12;
20
}, CLIENT_VARIANTS))
21
.listen(serverPath, common.mustCall(function() {
22
const getConnectCb = () => common.mustCall(function() {
23
24
- client.end();
25
- client.on('close', common.mustCall(function() {
+ this.end();
+ this.on('close', common.mustCall(function() {
26
counter++;
27
if (counter === CLIENT_VARIANTS) {
28
server.close();
0 commit comments