test: widen DatacenterFactory code space (fix faker unique() pool exhaustion)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>feat/portal-design
parent
54d9a05235
commit
b44d25404d
|
|
@ -13,7 +13,8 @@ class DatacenterFactory extends Factory
|
|||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'code' => $this->faker->unique()->lexify('dc?'),
|
||||
// Wide unique space — 'dc?' (26 values) exhausted across a full suite run.
|
||||
'code' => 'dc'.$this->faker->unique()->numberBetween(100, 999999),
|
||||
'name' => $this->faker->city(),
|
||||
'location' => 'DE',
|
||||
'active' => true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue