Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge upstream

  • Loading branch information...
commit 6f489cc11075ca903b8b0c15b33cb13e6cd32da4 2 parents 04f03d8 + 6f98109
Sergi Mansilla authored November 14, 2012
2  package.json
... ...
@@ -1,7 +1,7 @@
1 1
 {
2 2
   "name": "jsftp",
3 3
   "id": "jsftp",
4  
-  "version": "0.4.7",
  4
+  "version": "0.4.8",
5 5
   "description": "A sane FTP client implementation for NodeJS",
6 6
   "keywords": [ "ftp", "protocol", "files", "server", "client", "async" ],
7 7
   "author": "Sergi Mansilla <sergi.mansilla@gmail.com> (http://sergimansilla.com)",
11  test/jsftp_test.js
@@ -367,12 +367,11 @@ describe("jsftp test suite", function() {
367 367
 
368 368
     it("test attach event handlers: connect", function(_next) {
369 369
         var clientOnConnect = function() {
370  
-            client.auth(FTPCredentials.user, FTPCredentials.pass, next);
371  
-        };
372  
-
373  
-        var next = function(err) {
374  
-            assert.ok(!err);
375  
-            client.destroy();
  370
+            client.auth(FTPCredentials.user, FTPCredentials.pass, function(err) {
  371
+                assert.ok(!err);
  372
+                client.destroy();
  373
+                _next();
  374
+            });
376 375
         };
377 376
 
378 377
         FTPCredentials.onConnect = clientOnConnect;

0 notes on commit 6f489cc

Please sign in to comment.
Something went wrong with that request. Please try again.