When designing code, especially for real-time systems, try to imagine what it would take to write a stress test for it, document those thoughts so you or someone else can write the stress test.
"If something happens rarely, force it to happen often." [pp. 58, Writing Solid Code, Steve Maquire]