Skip to content

mocha EADDRINUSE error #15

@csarkosh

Description

@csarkosh

When testing http requests for different routes, I am continually getting the following error:
listen EADDRINUSE :::3000

I'm assuming this has to do with the the app running on port 3000 and chai-http defaulting to port 3000.

As of right now, I am just ignoring the error because it does not interfere with being able to test the functionality that I want tested. It's just annoying having that error continually pop up at the end of each test file.

To fix, I'll probably need to reference this article:
http://www.marcusoft.net/2015/10/eaddrinuse-when-watching-tests-with-mocha-and-supertest.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions