Skip to content

Commit d077116

Browse files
committed
fix workflow
1 parent 6026683 commit d077116

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/downloadSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { StringWriter } = require("../dist/StringWriter");
44
const MockFtpServer = require("./MockFtpServer");
55
const { Writable } = require("stream")
66
const fs = require("fs");
7+
const { Socket } = require("net");
78

89
const FILENAME = "file.txt"
910
const TIMEOUT = 1000
@@ -151,7 +152,7 @@ describe("Download to stream", function() {
151152
"pasv": () => `227 Entering Passive Mode (${this.server.dataAddressForPasvResponse})`,
152153
"retr": ({arg}) => {
153154
//close data connection such that client receives ECONNRESET
154-
this.server.dataConn.resetAndDestroy()
155+
this.server.dataConn.resetAndDestroy?.()
155156

156157
return `550 ${arg}: No such file or directory.`
157158
}

0 commit comments

Comments
 (0)