This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git

commit b33e9fc93e35de1ea36d300f3fde5a4bfb1f236e
Author: Sonui <[email protected]>
AuthorDate: Sun Oct 5 17:33:45 2025 +0800

    fix: Add time parameter when updating user status
---
 internal/repo/repo_test/user_backyard_repo_test.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/internal/repo/repo_test/user_backyard_repo_test.go 
b/internal/repo/repo_test/user_backyard_repo_test.go
index e1db0d60..073a600c 100644
--- a/internal/repo/repo_test/user_backyard_repo_test.go
+++ b/internal/repo/repo_test/user_backyard_repo_test.go
@@ -22,6 +22,7 @@ package repo_test
 import (
        "context"
        "testing"
+       "time"
 
        "github.com/apache/answer/internal/entity"
        "github.com/apache/answer/internal/repo/auth"
@@ -53,7 +54,7 @@ func Test_userAdminRepo_UpdateUserStatus(t *testing.T) {
        assert.Equal(t, entity.UserStatusAvailable, got.Status)
 
        err = userAdminRepo.UpdateUserStatus(context.TODO(), "1", 
entity.UserStatusSuspended, entity.EmailStatusAvailable,
-               "[email protected]")
+               "[email protected]", time.Now().Add(time.Minute*5))
        assert.NoError(t, err)
 
        got, exist, err = userAdminRepo.GetUserInfo(context.TODO(), "1")
@@ -62,7 +63,7 @@ func Test_userAdminRepo_UpdateUserStatus(t *testing.T) {
        assert.Equal(t, entity.UserStatusSuspended, got.Status)
 
        err = userAdminRepo.UpdateUserStatus(context.TODO(), "1", 
entity.UserStatusAvailable, entity.EmailStatusAvailable,
-               "[email protected]")
+               "[email protected]", time.Time{})
        assert.NoError(t, err)
 
        got, exist, err = userAdminRepo.GetUserInfo(context.TODO(), "1")

Reply via email to