From 4e255e6ad1ae359c3360d386a76d91f1554492a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D0=BD=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80=20=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= Date: Wed, 23 Sep 2026 20:46:20 +0300 Subject: [PATCH] MSP-8394 Fix flaky test --- tests/application_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/application_test.go b/tests/application_test.go index 435f37f..8a4f3b2 100644 --- a/tests/application_test.go +++ b/tests/application_test.go @@ -6,6 +6,7 @@ import ( "isp-system-service/domain" "isp-system-service/entity" "isp-system-service/repository" + "math" "testing" "time" @@ -89,12 +90,12 @@ func (s *ApplicationSuite) Test_GetByAppId() { } func (s *ApplicationSuite) Test_GetByAppId_NotFoundAny() { - insertedApps := s.insertApps(2) + _ = s.insertApps(2) result := []domain.Application{} err := s.api.Invoke("system/application/get_by_app_group"). JsonRequestBody(domain.Identity{ - Id: fake.It[int]() + insertedApps[0].ApplicationGroupId, + Id: math.MaxInt32, }). JsonResponseBody(&result). Do(s.T().Context())