The magic number 0.8 (80% tolerance) should be defined as a named constant to make the test more maintainable and self-documenting. Consider extracting it as let minimumWaitTolerance = 0.8.
#expect(duration >= wait * minimumWaitTolerance)
Originally posted by @Copilot in #31 (comment)