From 3d4ac4fb15bf313ba26b40f087229a28155a68ac Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 10 Jun 2026 11:18:37 +0200 Subject: [PATCH] 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 --- .../Command/TaskProcessing/WorkerCommandTest.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/Core/Command/TaskProcessing/WorkerCommandTest.php b/tests/Core/Command/TaskProcessing/WorkerCommandTest.php index 4577a09ace1..ddeb28dfdd0 100644 --- a/tests/Core/Command/TaskProcessing/WorkerCommandTest.php +++ b/tests/Core/Command/TaskProcessing/WorkerCommandTest.php @@ -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';