diff --git a/internal/app/user_server/controller/auth/reset_password_test.go b/internal/app/user_server/controller/auth/reset_password_test.go index 720516ce0..10aacc74e 100644 --- a/internal/app/user_server/controller/auth/reset_password_test.go +++ b/internal/app/user_server/controller/auth/reset_password_test.go @@ -29,7 +29,7 @@ func TestResetPasswordWithEmptyBody(t *testing.T) { assert.Nil(t, json.Unmarshal(r.Body.Bytes(), &res)) assert.Equal(t, exception.InvalidParams.Code(), res.Status) - assert.Equal(t, exception.InvalidParams.Error(), res.Message) + assert.Equal(t, "unexpected end of JSON input", res.Message) assert.Nil(t, res.Data) } diff --git a/internal/app/user_server/controller/auth/signin_test.go b/internal/app/user_server/controller/auth/signin_test.go index 450049368..fefa3e53e 100644 --- a/internal/app/user_server/controller/auth/signin_test.go +++ b/internal/app/user_server/controller/auth/signin_test.go @@ -27,7 +27,7 @@ func TestSignInWithEmptyBody(t *testing.T) { assert.Nil(t, json.Unmarshal(r.Body.Bytes(), &res)) assert.Equal(t, exception.InvalidParams.Code(), res.Status) - assert.Equal(t, exception.InvalidParams.Error(), res.Message) + assert.Equal(t, "unexpected end of JSON input", res.Message) assert.Nil(t, res.Data) } diff --git a/internal/app/user_server/controller/auth/signup_test.go b/internal/app/user_server/controller/auth/signup_test.go index b21c4dd7f..f4e8e6fe4 100644 --- a/internal/app/user_server/controller/auth/signup_test.go +++ b/internal/app/user_server/controller/auth/signup_test.go @@ -26,7 +26,7 @@ func TestSignUpWithEmptyBody(t *testing.T) { assert.Nil(t, json.Unmarshal(r.Body.Bytes(), &res)) assert.Equal(t, exception.InvalidParams.Code(), res.Status) - assert.Equal(t, exception.InvalidParams.Error(), res.Message) + assert.Equal(t, "unexpected end of JSON input", res.Message) assert.Nil(t, res.Data) }