Skip to content

Commit

Permalink
Those test should run only if extension is available
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimpf committed Apr 18, 2023
1 parent cce4cef commit af8a81a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ParallelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function testProgressBar(): void {
}
}

/** @depends testThatParallelExtensionIsAvailable */
public function testThatTasksCanBeRemovedFromQueue(): void {
Scheduler::using(Workers\LongRunningWorker::class);

Expand Down Expand Up @@ -155,6 +156,7 @@ public function testThatTasksCanBeRemovedFromQueue(): void {
Scheduler::removeAllTasks();
}

/** @depends testThatParallelExtensionIsAvailable */
public function testThatTasksCanBeCancelled(): void {
Scheduler::using(Workers\LongRunningWorker::class);

Expand Down Expand Up @@ -185,6 +187,7 @@ public function testThatTasksCanBeCancelled(): void {
Scheduler::removeAllTasks();
}

/** @depends testThatParallelExtensionIsAvailable */
public function testThatChannelsDontOverlap(): void {
Scheduler::using(Workers\WorkerWithSubWorkers::class);

Expand Down

0 comments on commit af8a81a

Please sign in to comment.