Skip to content

Conversation

mstv
Copy link
Member

@mstv mstv commented Jan 15, 2025

Proposed changes

Several CI builds failed because the testcase execution on AppVeyor took more than 3 seconds.
Relax the regarding timer.

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

@mstv mstv self-assigned this Jan 15, 2025
@@ -55,7 +55,7 @@ public async Task Process_shall_be_killed_on_cancellation()
process.Dispose();

TimeSpan durationWaitTimeout = DateTime.Now - startedAt;
durationWaitTimeout.Should().BeGreaterThan(1.5 * cancelDelay).And.BeLessThan(2.5 * cancelDelay);
durationWaitTimeout.Should().BeGreaterThan(1.5 * cancelDelay).And.BeLessThan(4 * cancelDelay);
Copy link
Member

Choose a reason for hiding this comment

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

Is 4 enough, why not 10 or so?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is 4 enough, why not 10 or so?

Most of the time, the testcase passed within the original 2.5 seconds. Worst case was ~ 3.5 seconds.
The process shall be killed in reasonable time. I want to be notified if this does not work well.

@mstv mstv merged commit 569a582 into gitextensions:master Jan 16, 2025
4 checks passed
@mstv mstv deleted the fix/tests branch January 16, 2025 19:48
@mstv mstv added this to the v5.3 milestone Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants