From f1173d6879cb26af21483037fae72542f3088408 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Sat, 22 Apr 2023 23:56:27 +0200 Subject: Use more specific test methods (#24265) Co-authored-by: silverwind Co-authored-by: Giteabot --- tests/integration/api_admin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/integration/api_admin_test.go') diff --git a/tests/integration/api_admin_test.go b/tests/integration/api_admin_test.go index b608c26f6e..53e4849aa5 100644 --- a/tests/integration/api_admin_test.go +++ b/tests/integration/api_admin_test.go @@ -123,7 +123,7 @@ func TestAPIListUsers(t *testing.T) { } assert.True(t, found) numberOfUsers := unittest.GetCount(t, &user_model.User{}, "type = 0") - assert.Equal(t, numberOfUsers, len(users)) + assert.Len(t, users, numberOfUsers) } func TestAPIListUsersNotLoggedIn(t *testing.T) { -- cgit v1.2.3