From abe848d11541d4e3a6b28a714ef125b82341142d Mon Sep 17 00:00:00 2001 From: Gabriel Handford Date: Wed, 26 Aug 2020 21:38:58 -0700 Subject: [PATCH] service: Test user lookup --- service/user_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/user_test.go b/service/user_test.go index b8e39d8e..2ad3e95f 100644 --- a/service/user_test.go +++ b/service/user_test.go @@ -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) {