Skip to content

Commit 5dc625b

Browse files
committed
test(music): ensure fork concurrency is set by default
Set the default concurrency to 'fork' in the MusicTest to ensure that the tests run in a forked environment. This change also skips the 'songs' test group on Windows to align with platform-specific execution considerations.
1 parent d64c1d6 commit 5dc625b

File tree

2 files changed

+66
-65
lines changed

2 files changed

+66
-65
lines changed

composer.lock

Lines changed: 64 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Unit/MusicTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
//
2626
// return $mockMusic->makePartial();
2727
// });
28+
config()->set('concurrency.default', 'fork');
2829
expect(app(Music::class))->search('腰乐队', config('app.sources'))->toBeInstanceOf(Collection::class);
29-
})->group(__DIR__, __FILE__)->with('songs');
30-
30+
})->group(__DIR__, __FILE__)->with('songs')->skipOnWindows();
3131
it('will throw exception when download failed', function (): void {
3232
try {
3333
app(Music::class)->download('foo.mp3', downloads_path('foo.mp3'));

0 commit comments

Comments
 (0)