mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-12 15:53:46 -04:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
11 lines
280 B
PHP
11 lines
280 B
PHP
<?php
|
|
|
|
use App\Services\Dns\DnsResolver;
|
|
|
|
it('limits direct DNS queries to five seconds', function () {
|
|
$query = createDnsQuery('1.1.1.1');
|
|
$timeout = (new ReflectionClass(DnsResolver::class))->getProperty('timeout')->getValue($query);
|
|
|
|
expect($timeout)->toBe(5);
|
|
});
|