MSP-8394 Fix flaky test

This commit is contained in:
Синельник Тимур Романович committed 2026-09-23 20:47:07 +03:00
1 parent 8f6af4b871
commit 4e255e6ad1
1 file changed
+3 -2
+3 -2
View File
@@ -6,6 +6,7 @@ import (
"isp-system-service/domain" "isp-system-service/domain"
"isp-system-service/entity" "isp-system-service/entity"
"isp-system-service/repository" "isp-system-service/repository"
"math"
"testing" "testing"
"time" "time"
@@ -89,12 +90,12 @@ func (s *ApplicationSuite) Test_GetByAppId() {
} }
func (s *ApplicationSuite) Test_GetByAppId_NotFoundAny() { func (s *ApplicationSuite) Test_GetByAppId_NotFoundAny() {
insertedApps := s.insertApps(2) _ = s.insertApps(2)
result := []domain.Application{} result := []domain.Application{}
err := s.api.Invoke("system/application/get_by_app_group"). err := s.api.Invoke("system/application/get_by_app_group").
JsonRequestBody(domain.Identity{ JsonRequestBody(domain.Identity{
Id: fake.It[int]() + insertedApps[0].ApplicationGroupId, Id: math.MaxInt32,
}). }).
JsonResponseBody(&result). JsonResponseBody(&result).
Do(s.T().Context()) Do(s.T().Context())