Daily iOS
Testing

Testing time-dependent code

The "retry after three seconds" logic uses Task.sleep(for: .seconds(3)), so the test really waits three seconds each time. Which are correct approaches for making the test fast and deterministic? Select all that apply.

Pick all that apply

Submit