perf(tests): Remove worked command tests that relies on timeout

It's testing something basic and takes more than a second each time to
run.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
Carl Schwan 2026-06-10 11:18:37 +02:00
parent fea2f67f38
commit 3d4ac4fb15
No known key found for this signature in database
GPG key ID: 02325448204E452A

View file

@ -219,22 +219,6 @@ class WorkerCommandTest extends TestCase {
$this->assertSame(0, $result);
}
public function testTimeoutExitsLoop(): void {
// Arrange: no providers so each iteration does nothing, but timeout=1 should exit quickly
$this->manager->method('getProviders')->willReturn([]);
$input = new ArrayInput(['--timeout' => '1', '--interval' => '0'], $this->command->getDefinition());
$output = new NullOutput();
$start = time();
$result = $this->command->run($input, $output);
$elapsed = time() - $start;
$this->assertSame(0, $result);
// Should have exited within a few seconds
$this->assertLessThanOrEqual(5, $elapsed);
}
public function testProcessesCorrectProviderForReturnedTaskType(): void {
$taskTypeId1 = 'type_a';
$taskTypeId2 = 'type_b';