Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge upstream

  • Loading branch information...
commit 6f489cc11075ca903b8b0c15b33cb13e6cd32da4 2 parents 04f03d8 + 6f98109
@sergi sergi authored
Showing with 6 additions and 7 deletions.
  1. +1 −1  package.json
  2. +5 −6 test/jsftp_test.js
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "jsftp",
"id": "jsftp",
- "version": "0.4.7",
+ "version": "0.4.8",
"description": "A sane FTP client implementation for NodeJS",
"keywords": [ "ftp", "protocol", "files", "server", "client", "async" ],
"author": "Sergi Mansilla <sergi.mansilla@gmail.com> (http://sergimansilla.com)",
View
11 test/jsftp_test.js
@@ -367,12 +367,11 @@ describe("jsftp test suite", function() {
it("test attach event handlers: connect", function(_next) {
var clientOnConnect = function() {
- client.auth(FTPCredentials.user, FTPCredentials.pass, next);
- };
-
- var next = function(err) {
- assert.ok(!err);
- client.destroy();
+ client.auth(FTPCredentials.user, FTPCredentials.pass, function(err) {
+ assert.ok(!err);
+ client.destroy();
+ _next();
+ });
};
FTPCredentials.onConnect = clientOnConnect;
Please sign in to comment.
Something went wrong with that request. Please try again.