Colly: Suggestion: Use httptest instead of manually running HTTP server

Created on 5 Jan 2018  Â·  3Comments  Â·  Source: gocolly/colly

Currently there is code in the tests manually running a HTTP server to run test against, this is what the net/http/httptest package is meant to be used for.

Most helpful comment

Yes, I've used *httptest.Server in a few projects before so there shouldn't be any surprises…

I can take a look at making this change later, but first I'm going to visit my grandmother 😃

All 3 comments

You're right, it would be a better solution. Would you like to work on this?

Yes, I've used *httptest.Server in a few projects before so there shouldn't be any surprises…

I can take a look at making this change later, but first I'm going to visit my grandmother 😃

Implemented: 132289a
Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CrazyMouse picture CrazyMouse  Â·  3Comments

K4N0 picture K4N0  Â·  6Comments

0verbyte picture 0verbyte  Â·  5Comments

dnlo picture dnlo  Â·  4Comments

zplzpl picture zplzpl  Â·  5Comments