mirror of
https://github.com/pelican-dev/panel.git
synced 2026-03-01 11:21:31 +03:00
fix: use port range on free allocation lookup (#1882)
Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
@@ -29,10 +29,13 @@ class FindAssignableAllocationServiceTest extends IntegrationTestCase
|
||||
public function test_existing_allocation_is_preferred(): void
|
||||
{
|
||||
$server = $this->createServerModel();
|
||||
config()->set('panel.client_features.allocations.range_start', 5000);
|
||||
config()->set('panel.client_features.allocations.range_end', 5005);
|
||||
|
||||
$created = Allocation::factory()->create([
|
||||
'node_id' => $server->node_id,
|
||||
'ip' => $server->allocation->ip,
|
||||
'port' => 5005,
|
||||
]);
|
||||
|
||||
$response = $this->getService()->handle($server);
|
||||
|
||||
Reference in New Issue
Block a user