17

One of our juniors was adding a feature and made a small mistake in one of their (copy-pasted) unit tests by forgetting to cast a return value of a mock

So he spent a ton of time changing the main code to do type checks, try/catching and error handling.

Poor soul realized the mistake in code review one day later

Comments
  • 7
    At least he probably learnt a thing or two while he was doing it
  • 5
    And at least recognizing it as a mistake and not hunkering down with some pretzelized defense on why it needs to be this way.
Add Comment