There's more than one way to do things | |
PerlMonks |
Re^2: Timeout on proveby chrestomanci (Priest) |
on Jul 03, 2014 at 11:06 UTC ( [id://1092151]=note: print w/replies, xml ) | Need Help?? |
Thanks, but the issue is not caused by slow connections to external resources. We already mock those. The issue was caused by a bug in normal perl code that had no external dependencies. What happened, is that the unit test contained code to set-up the initial test data, but that setup code was broken by a change elsewhere in the code base. A bit like:
The problem was that someone else changed the default constructor for My::Object, so that foo was always set to true, so the while loop above looped forever. Nothing to do with external resources, just quick and dirty test code broken by an API change.
In Section
Seekers of Perl Wisdom
|
|