From b44d25404dbc1436c10a0e8d80bbed8fbde9ea15 Mon Sep 17 00:00:00 2001 From: nexxo Date: Sat, 25 Jul 2026 14:23:49 +0200 Subject: [PATCH] test: widen DatacenterFactory code space (fix faker unique() pool exhaustion) Co-Authored-By: Claude Opus 4.8 --- database/factories/DatacenterFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/factories/DatacenterFactory.php b/database/factories/DatacenterFactory.php index 0825956..74a1ab4 100644 --- a/database/factories/DatacenterFactory.php +++ b/database/factories/DatacenterFactory.php @@ -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,