From 1bee6fa839e0d2000abef39bb6c9fbd6483f864f Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 6 Oct 2024 08:28:43 +0200 Subject: [PATCH] Add support for searching users by email (#30908) (testifylint) --- tests/integration/api_user_search_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/api_user_search_test.go b/tests/integration/api_user_search_test.go index eb2b6f45f5..63c1f86f27 100644 --- a/tests/integration/api_user_search_test.go +++ b/tests/integration/api_user_search_test.go @@ -145,7 +145,7 @@ func TestAPIUserSearchByEmail(t *testing.T) { var results SearchResults DecodeJSON(t, resp, &results) - assert.Equal(t, 1, len(results.Data)) + assert.Len(t, results.Data, 1) assert.Equal(t, query, results.Data[0].Email) // no login user can not search user with private email @@ -163,6 +163,6 @@ func TestAPIUserSearchByEmail(t *testing.T) { resp = MakeRequest(t, req, http.StatusOK) DecodeJSON(t, resp, &results) - assert.Equal(t, 1, len(results.Data)) + assert.Len(t, results.Data, 1) assert.Equal(t, query, results.Data[0].Email) }