Skip to content

fix(test): replace bare delay with poll in AutoStart_starts_timer_immediately#42

Merged
poxet merged 1 commit into
masterfrom
fix/managed-timer-autostart-flake
Jun 8, 2026
Merged

fix(test): replace bare delay with poll in AutoStart_starts_timer_immediately#42
poxet merged 1 commit into
masterfrom
fix/managed-timer-autostart-flake

Conversation

@poxet

@poxet poxet commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

AutoStart_starts_timer_immediately failed on the master build after PR #41Task.Delay(50) was not enough to let the timer transition out of Stopped on a busy Linux runner.

Replaces the bare delay with a 2-second polling loop. Locally exits in one iteration; on CI it tolerates scheduling jitter.

Test plan

  • Test passes locally
  • CI green

A bare Task.Delay(50) was too short for busy Linux CI runners — the
timer's async startup hadn't transitioned out of Stopped within 50 ms.
Replace with a 2-second polling loop. Locally the loop exits within
one iteration; on CI it tolerates scheduling jitter.

Caught on the first master push after PR #41 merged.
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@poxet poxet merged commit 134b3d4 into master Jun 8, 2026
7 of 8 checks passed
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Released as v1.15.25https://github.com/Tharga/Toolkit/releases/tag/1.15.25

@poxet poxet deleted the fix/managed-timer-autostart-flake branch June 8, 2026 09:18
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.

1 participant