Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run the tests #1

Open
furstenheim opened this issue Feb 8, 2019 · 0 comments
Open

Not able to run the tests #1

furstenheim opened this issue Feb 8, 2019 · 0 comments

Comments

@furstenheim
Copy link

Hi!
I'm trying to run the tests. I'm getting several errors.

Unhandled rejection Error: ENOENT: no such file or directory, lstat '/home/fursten/sftp-server/test/resources/data'

    1) "before all" hook

It comes from this part of the code:

before(function(done) {
    fs.removeAsync(targetDataDir)
        .then(() => {
            return fs.copyAsync(srcDataDir, targetDataDir);
        })
        .then(() => {
            return server;
        })
        .then((res) => {
            server = res;
            server.on('ready', () => {
                return done();
            });
            server.listen();
        });
});

However, srcDataDir and targetDataDir do not seem to be in use. If I comment that part of the code.
I get two types of errors:

  1) Test Suite SFTP Server Should connect when given the correct username / password:
     Uncaught Error: connect ECONNREFUSED 127.0.0.1:4000
      at Object._errnoException (util.js:992:11)

And

  9) Test Suite REST API Should return user metadata:
     RequestError: Error: connect ECONNREFUSED 127.0.0.1:8000

I've tried running yarn run dev. Three more tests pass, but I'm still getting


 4) Test Suite SFTP Server Should allow you to upload files (large):
     Uncaught Error: connect ECONNREFUSED 127.0.0.1:4000
      at Object._errnoException (util.js:992:11)
      at _exceptionWithHostPort (util.js:1014:20)
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)


Something else that I'm missing?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant