Software engineer, lifelong learner, language enthusiast & avid reader — Get my free 7-day email course to refactor your coding career: bit.ly/csarag-lessons
Location
Colombia 🇨🇴 (not Columbia)
Work
Content, Courses & Training for .NET teams — Helping teams to write maintainable & performant code
I've seem them all :) In a past project, we were testing retry mechanisms of handlers (think of additional actions after running a database transaction) and nobody reduced the retry count and delays inside the unit tests, so we had a test suite that literally ran in minutes doing nothing. Arrrggg! So if you have tests for retrying logic, reduce the delays inside your tests :)
Ouch! We had a test that that ran for 40 seconds (1000000 iterations). It turned out it was effectively testing a random number generator from the standard library...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've seem them all :) In a past project, we were testing retry mechanisms of handlers (think of additional actions after running a database transaction) and nobody reduced the retry count and delays inside the unit tests, so we had a test suite that literally ran in minutes doing nothing. Arrrggg! So if you have tests for retrying logic, reduce the delays inside your tests :)
Ouch! We had a test that that ran for 40 seconds (1000000 iterations). It turned out it was effectively testing a random number generator from the standard library...