From 10e316049d28528fad508e9ae61422fa473e573d Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 13 Jun 2024 18:00:05 +0300 Subject: [PATCH] MSP-3427 minor fixes in user.test --- tests/user_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/user_test.go b/tests/user_test.go index a204f21..d33a91f 100644 --- a/tests/user_test.go +++ b/tests/user_test.go @@ -353,7 +353,7 @@ func (s *UserTestSuite) TestChangePasswordUser() { Do(context.Background()) s.Require().Error(err) err = apierrors.FromError(err) - s.Require().Contains(err.Error(), domain.ErrCodeInvalidPassword) + s.Require().Contains(err.Error(), strconv.Itoa(domain.ErrCodeInvalidPassword)) // change password changePswReq := domain.ChangePasswordRequest{OldPassword: "password", NewPassword: "new_password"}