tokuhirom / p6-HTTP-Server-Tiny

Web application server for Perl6
Artistic License 2.0
18 stars 10 forks source link

Tried to add more diagnostic info to tests #62

Closed samgwise closed 7 years ago

samgwise commented 7 years ago

I had an issue related to HTTP::Tinyish installing without testing itself, as such HTTP::Server::Tiny's tests failed. In trying to debug the errors I added some additional diagnostic tests of status codes which helped narrow down the problem to HTTP::Tinyish installing even though the system did not have curl on which HTTP::Tinyish requires.

To try and make it clear if there is a problem with HTTP::Tinyish I've added a dependency test to be run at the start to ensure HTTP::Tinyish is working. I've placed a pull request on HTTP::Tinyish with a similar basic test but I'm still in discussion about it with the author. Until the time that HTTP::Tinyish has tests running with install I think testing it as part of this module's tests is the best way forward.

I also rewrote the Channel tests a bit to be less timer dependent.