supertest throwing 404 error when stress testing express router

Created on 18 Oct 2016  路  5Comments  路  Source: visionmedia/supertest

Hi,

I've made a repo so you can reproduce the issue :
https://github.com/jon301/express-router-test

What you need to do :

npm install -g gulp-cli
git clone https://github.com/jon301/express-router-test.git
cd express-router-test
npm install
gulp test

This will do many requests against the same route and will crash after a while.

too-old

Most helpful comment

I've got the same. It's very annoying.

All 5 comments

Similar isue here!

I've got the same. It's very annoying.

@jon301 @marcelino-m @Dr8f
Hey I try your example, and then upgrade supertest to 2.0.1
And it won't crash.
Would you mind try again with newer version of supertest?

Hi @bananaappletw,
I've just upgraded the dependencies in my repository and still get the same error :

image

@jon301
I tried again.
It happened.
Seems tests won't pass every time.
Sorry for previous wrong comment.
This issue exists!!!

Was this page helpful?
0 / 5 - 0 ratings