Skip to content

Commit

Permalink
Test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimpf committed Apr 9, 2023
1 parent 19ff6e7 commit ddfbe77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ParallelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public function testThatTasksCanBeCancelled(): void {
}
}

// wait 200ms and stop all
usleep(200_000);
// wait 500ms and stop all
usleep(500_000);
Scheduler::stop();

$has_pending_tasks = false;
Expand All @@ -178,9 +178,9 @@ public function testThatTasksCanBeCancelled(): void {
$has_cancelled_tasks = $has_cancelled_tasks || $task->wasCancelled();
}

$this->assertTrue($has_pending_tasks);
$this->assertTrue($has_processed_tasks);
$this->assertTrue($has_cancelled_tasks);
$this->assertTrue($has_pending_tasks, 'There are no pending Tasks left');
$this->assertTrue($has_processed_tasks, 'There are no processed Tasks');
$this->assertTrue($has_cancelled_tasks, 'There are no cancelled Tasks');

Scheduler::removeAllTasks();
}
Expand Down

0 comments on commit ddfbe77

Please sign in to comment.