From 939a94b704d4b2164b34eac97a19751910fd0777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B0=D0=BD=D1=87=D0=B5=D0=BD=D0=BA=D0=BE=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Mon, 23 Mar 2026 14:05:04 +0000 Subject: [PATCH] Hot fix tests --- go.mod | 2 +- go.sum | 4 ++-- tests/audit_test.go | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index a47abe1..2a2fc43 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.11.1 github.com/txix-open/bgjob v1.6.0 - github.com/txix-open/isp-kit v1.65.1 + github.com/txix-open/isp-kit v1.65.2 github.com/txix-open/jsonschema v1.3.0 golang.org/x/crypto v0.49.0 golang.org/x/sync v0.20.0 diff --git a/go.sum b/go.sum index a67f8d4..6bfcdc7 100644 --- a/go.sum +++ b/go.sum @@ -153,8 +153,8 @@ github.com/txix-open/etp/v4 v4.0.1 h1:5VSYgGsvnMz0tvUHsjVWFETI0qWBTCF1O3ARCHaCIg github.com/txix-open/etp/v4 v4.0.1/go.mod h1:FIu7TUDdwcgmtmF6tFTV1bGA2fRY/iVaPQdsGzvqYc8= github.com/txix-open/grmq v1.10.0 h1:1bXuF+7TxtUvoh+Wn6SOCYpVACFbWDuDmz/+tKwW9Ms= github.com/txix-open/grmq v1.10.0/go.mod h1:EyFOP17KrwEFOUjR+PH8iH3LCtiN9TSQ8t0ysyk62po= -github.com/txix-open/isp-kit v1.65.1 h1:KehXIJdPZMnewDd5XQxk87yNAtNhvJXApaLFvbUau5U= -github.com/txix-open/isp-kit v1.65.1/go.mod h1:F4B/+ErbNVaWzIIGasXM5DtcDKtjl6u2OESO02RyzCI= +github.com/txix-open/isp-kit v1.65.2 h1:AH4PTpgEJFqaggfQw3k6c05xWTRx+Xqxkx5iZ3vEPNs= +github.com/txix-open/isp-kit v1.65.2/go.mod h1:F4B/+ErbNVaWzIIGasXM5DtcDKtjl6u2OESO02RyzCI= github.com/txix-open/jsonschema v1.3.0 h1:XGuOTg22G7PdqfKypjajM20/i5FyGfFYsJKmheebKi4= github.com/txix-open/jsonschema v1.3.0/go.mod h1:l8YDZ1nvJrw6uxWowSVOxCV/ebiMJyapffW87ZEqH00= github.com/txix-open/validator/v10 v10.0.0-20250506161033-f8ce404fffdb h1:UJgT4u/QMv5QHKOQeJ7igShHa36c2/vIRqJiRLdDlf0= diff --git a/tests/audit_test.go b/tests/audit_test.go index db70b61..1adfeb0 100644 --- a/tests/audit_test.go +++ b/tests/audit_test.go @@ -221,10 +221,14 @@ func (t *AuditSuite) Test_All_Logs() { Do(context.Background()) t.Require().NoError(err) - t.Require().Len(response.Items, 2) - t.Require().EqualValues(2, response.TotalCount) + t.Require().Len(response.Items, 6) + t.Require().EqualValues(6, response.TotalCount) t.Require().EqualValues(10, response.Items[0].UserId) t.Require().EqualValues(9, response.Items[1].UserId) + t.Require().EqualValues(8, response.Items[2].UserId) + t.Require().EqualValues(7, response.Items[3].UserId) + t.Require().EqualValues(6, response.Items[4].UserId) + t.Require().EqualValues(5, response.Items[5].UserId) } func (t *AuditSuite) insertAuditLogs() {