Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RythenGlyth committed Oct 15, 2023
1 parent 6026683 commit d077116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/downloadSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { StringWriter } = require("../dist/StringWriter");
const MockFtpServer = require("./MockFtpServer");
const { Writable } = require("stream")
const fs = require("fs");
const { Socket } = require("net");

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

return `550 ${arg}: No such file or directory.`
}
Expand Down

0 comments on commit d077116

Please sign in to comment.