Random Behavior
Testing code that intentionally has random behavior is a complete PITA.
Worse, is when you realize you’ve been a total dumbass for the last 30 minutes chasing a caching bug that’s a bitch to reproduce & happens only on every 7th iteration of the test script, only to realize that, duh, the cache code is fine, and the random part that gets invoked 1/7th of the time is where the problem lies.
Grah.
