Describe a scenario where a test you wrote was flaky. How did you identify the source of flakiness, and what steps did you take to resolve it?