GithubHelp home page GithubHelp logo

I got EMFILE about supertest HOT 4 CLOSED

ladjs avatar ladjs commented on May 21, 2024
I got EMFILE

from supertest.

Comments (4)

 avatar commented on May 21, 2024

I examined deeper, and I got that it is find if I pass http server instead of express app.

server = http.createServer(app) # or server = app.listen 3456
req = (supertest server)['get'] '/users'

I think it is better to deal this problem or to add some notice.

from supertest.

tj avatar tj commented on May 21, 2024

it shouldn't matter if it's http or express as long as it's not already listening, also best not to post coffeescript, like req = (supertest server)['get'] '/users' makes no sense to me haha supertest(server).get('/users') looks a million times better

from supertest.

kersten avatar kersten commented on May 21, 2024

I have this problem too, is there some kind of workaround? Why does supertest needs to open a port per request(app).*? I would think there is only one port needed.

from supertest.

gjohnson avatar gjohnson commented on May 21, 2024

Just pass in a server that is already listening.

from supertest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.