Skip to content

[13.x] Fix flaky scheduling test on Windows - #61768

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
jasonmccreary:windows-scheduling-test-flake
Sep 28, 2026
Merged

taylorotwell merged 1 commit into
laravel:13.xfrom
jasonmccreary:windows-scheduling-test-flake

Conversation

@jasonmccreary

@jasonmccreary jasonmccreary commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

This fixes an intermittent failure on the Windows jobs.

CommandSchedulingTest swaps Testbench's artisan script for a custom one and restores it in tearDown(). In the "Background" case the scheduled command runs in a separate process, which can still have that script open when tearDown() runs. Windows won't replace or remove a file another process has open, so the restore fails with "Permission denied", the test errors, and Testbench's artisan is left as the custom script.

@taylorotwell
taylorotwell merged commit b8547eb into laravel:13.x Sep 28, 2026
62 checks passed
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.

2 participants