mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-08-07 07:16:13 +00:00
Drop tests/Feature/QueueSafetyTest.php
The test only asserted property values and method_exists. The diff itself shows the property values; the test added zero confidence beyond reading the diff. Heimdall is an app, not a package; its existing tests are HTTP feature tests against user behavior, not class-property assertions. Removing this file keeps the PR aligned with the existing test conventions.
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Jobs\ProcessApps;
|
||||
use App\Jobs\UpdateApps;
|
||||
use Tests\TestCase;
|
||||
|
||||
class QueueSafetyTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function updateApps_has_bounded_retry_properties(): void
|
||||
{
|
||||
$job = new UpdateApps();
|
||||
|
||||
$this->assertSame(3, $job->tries);
|
||||
$this->assertSame([30, 60, 120], $job->backoff);
|
||||
$this->assertSame(60, $job->timeout);
|
||||
$this->assertSame(3600, $job->uniqueFor);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function processApps_has_bounded_retry_properties(): void
|
||||
{
|
||||
$job = new ProcessApps();
|
||||
|
||||
$this->assertSame(3, $job->tries);
|
||||
$this->assertSame([30, 60, 120], $job->backoff);
|
||||
$this->assertSame(60, $job->timeout);
|
||||
$this->assertSame(3600, $job->uniqueFor);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function both_jobs_expose_a_failed_method(): void
|
||||
{
|
||||
$this->assertTrue(method_exists(UpdateApps::class, 'failed'));
|
||||
$this->assertTrue(method_exists(ProcessApps::class, 'failed'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user