Skip to content

coverage: add tolerance to Stopwatch test#947

Merged
vbreuss merged 1 commit intomainfrom
topic/add-tolerance-to-stopwatch-test
Feb 23, 2026
Merged

coverage: add tolerance to Stopwatch test#947
vbreuss merged 1 commit intomainfrom
topic/add-tolerance-to-stopwatch-test

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Feb 23, 2026

This PR attempts to make the Stop_ShouldSetIsRunningToFalse test less brittle by adding tolerance for potential rounding issues on the real file system. The change reduces the expected minimum elapsed time from 100ms to 99ms (a 1ms tolerance) and adds an explanatory comment.

@vbreuss vbreuss self-assigned this Feb 23, 2026
Copilot AI review requested due to automatic review settings February 23, 2026 06:07
@vbreuss vbreuss added the coverage Additional tests for edge cases or improvement of test coverage label Feb 23, 2026
@vbreuss vbreuss changed the title tests: add tolerance to Stopwatch test coverage: add tolerance to Stopwatch test Feb 23, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to make the Stop_ShouldSetIsRunningToFalse test less brittle by adding tolerance for potential rounding issues on the real file system. The change reduces the expected minimum elapsed time from 100ms to 99ms (a 1ms tolerance) and adds an explanatory comment.

Changes:

  • Modified timing assertion in Stop_ShouldSetIsRunningToFalse test to use 99ms threshold instead of 100ms to account for rounding

@vbreuss vbreuss enabled auto-merge (squash) February 23, 2026 06:16
@sonarqubecloud
Copy link

@vbreuss vbreuss merged commit 586660d into main Feb 23, 2026
17 checks passed
@vbreuss vbreuss deleted the topic/add-tolerance-to-stopwatch-test branch February 23, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coverage Additional tests for edge cases or improvement of test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants