mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-14 03:19:51 +00:00
184fbb98f3
- Extract proxy timeout configuration logic into dedicated method - Add min:1 validation rule for publicPortTimeout - Normalize invalid timeout values (null, 0, negative) to default 3600s - Add tests for timeout configuration normalization and validation
12 lines
300 B
PHP
12 lines
300 B
PHP
<?php
|
|
|
|
use App\Livewire\Project\Service\Index;
|
|
|
|
test('service database proxy timeout requires a minimum of one second', function () {
|
|
$component = new Index;
|
|
$rules = (fn (): array => $this->rules)->call($component);
|
|
|
|
expect($rules['publicPortTimeout'])
|
|
->toContain('min:1');
|
|
});
|