Files
SkinbaseNova/tests/Unit/Jobs/RecComputeSimilarByBehaviorJobTest.php
T
klevze 8a80aae21e Ship production optimization M1-M12.5A: queues, metrics, HTTP observability, and vector search reliability.
Keep similar-ai from tripping the global circuit on a lone URL 502, clamp Qdrant search to 100, and add Server-Timing plus slow-request logging. Studio shared props, Academy S3 exists caching, heat chunking, and Redis/scheduler hygiene stay in this rollout.
2026-08-25 07:58:47 +02:00

27 lines
664 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Unit\Jobs;
use App\Jobs\RecComputeSimilarByBehaviorJob;
use Tests\TestCase;
final class RecComputeSimilarByBehaviorJobTest extends TestCase
{
public function test_job_timeout_stays_below_queue_retry_after(): void
{
$job = new RecComputeSimilarByBehaviorJob();
$this->assertLessThan(
(int) config('queue.connections.redis.retry_after'),
$job->timeout,
);
}
public function test_batch_jobs_do_not_use_without_overlapping_middleware(): void
{
$this->assertFalse(method_exists(new RecComputeSimilarByBehaviorJob(), 'middleware'));
}
}