diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index ef1b7e0..3e99996 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -74,6 +74,7 @@ jobs: apt-get install -y postgresql-client - name: Wait for Postgres + timeout-minutes: 1 run: | until pg_isready -h postgres -p 5432 -U root; do echo "Waiting for postgres..." diff --git a/app-modules/catalog/database/factories/EvCompanyFactory.php b/app-modules/catalog/database/factories/EvCompanyFactory.php index d9fe011..81c34f2 100644 --- a/app-modules/catalog/database/factories/EvCompanyFactory.php +++ b/app-modules/catalog/database/factories/EvCompanyFactory.php @@ -23,7 +23,9 @@ class EvCompanyFactory extends Factory 'slug' => fake()->unique()->slug(), 'description' => fake()->sentence(), 'mm_description' => null, - 'contact' => fake()->phoneNumber(), + // fake()->phoneNumber() occasionally emits formats (e.g. extensions like "x1234") + // that fail the form's ->tel() regex validation, making the test flaky. + 'contact' => fake()->numerify('+959#########'), 'address' => fake()->address(), 'logo' => null, 'is_active' => true,