From 894352b43f76f4c59989def3cad3f3230c889243 Mon Sep 17 00:00:00 2001 From: Nyan Lin Paing <117423022+LinPaing21@users.noreply.github.com> Date: Thu, 20 Aug 2026 20:49:28 +0700 Subject: [PATCH] fix ci/cd testing failure --- .gitea/workflows/tests.yml | 1 + app-modules/catalog/database/factories/EvCompanyFactory.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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,