...put debugging messages...
Putting debugging messages in HTTP::Tiny has identified the problem 😀
The mock HTTP data is working fine...but WWW::Crawl pulls links out of the page and then goes and looks at those. And those linked pages are not in the mocked data. The code is designed to deal with HTTP 404 errors for missing pages but Test::Mock::HTTP::Tiny gives HTTP 599 errors instead.
Thanks for your help with this. I now need to find a solution where it ignores expected 599 errors and not unexpected ones...
In reply to Solved! (was: Re^6: Testing with Test::Mock::HTTP::Tiny)
by Bod
in thread Testing with Test::Mock::HTTP::Tiny
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |