Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreds committed Jul 2, 2024
1 parent 6d4af8b commit e3d52e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/fusionauth/Client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,15 @@ func TestRetrieveUserFail(t *testing.T) {

assert.Equal(t, 0, len(errors.FieldErrors))
assert.Equal(t, 0, len(errors.GeneralErrors))
assert.Equal(t, 401, userResponse.StatusCode)
assert.Equal(t, 404, userResponse.StatusCode)
}

func TestRetrieveUserSuccess(t *testing.T) {
userResponse, errors, _ := faClient.RetrieveUserByEmail("[email protected]")
errJson, _ := json.Marshal(errors)
fmt.Println(string(errJson))

assert.Equal(t, 0, len(errors.FieldErrors))
assert.Equal(t, 0, len(errors.GeneralErrors))
assert.Equal(t, nil, errors)
assert.Equal(t, 200, userResponse.StatusCode)
}

Expand Down

0 comments on commit e3d52e4

Please sign in to comment.