Skip to content

Commit

Permalink
service: Test user lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed Aug 27, 2020
1 parent fbb5255 commit abe848d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ func TestUserAddEcho(t *testing.T) {
require.NoError(t, err)
require.Equal(t, 1, len(searchResp.Users))
require.Equal(t, "bob@echo", searchResp.Users[0].ID)

kid, err := service.lookup(context.TODO(), "bob@echo", &LookupOpts{Verify: true})
require.NoError(t, err)
require.Equal(t, keys.ID("kex1syuhwr4g05t4744r23nvxnr7en9cmz53knhr0gja7c84hr7fkw2quf6zcg"), kid)
}

func TestSearchUsers(t *testing.T) {
Expand Down

0 comments on commit abe848d

Please sign in to comment.