Skip to content

Commit

Permalink
fix: user srv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Dec 30, 2023
1 parent 30df31f commit 367aaa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/service/user/user.service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (t *UserServiceTest) TestFindOneNotFound() {

assert.True(t.T(), ok)
assert.Nil(t.T(), actual)
assert.Equal(t.T(), codes.NotFound, st.Code())
assert.Equal(t.T(), codes.Internal, st.Code())
}

func (t *UserServiceTest) TestUpdateSuccess() {
Expand Down Expand Up @@ -144,7 +144,7 @@ func (t *UserServiceTest) TestUpdateNotFound() {

assert.True(t.T(), ok)
assert.Nil(t.T(), actual)
assert.Equal(t.T(), codes.NotFound, st.Code())
assert.Equal(t.T(), codes.Internal, st.Code())
}

func (t *UserServiceTest) TestDeleteSuccess() {
Expand Down Expand Up @@ -172,5 +172,5 @@ func (t *UserServiceTest) TestDeleteNotFound() {
st, ok := status.FromError(err)
assert.True(t.T(), ok)
assert.Nil(t.T(), actual)
assert.Equal(t.T(), codes.NotFound, st.Code())
assert.Equal(t.T(), codes.Internal, st.Code())
}

0 comments on commit 367aaa4

Please sign in to comment.