Skip to content

Commit

Permalink
replace manual list with ActivityClientTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
raskchanky committed Mar 19, 2024
1 parent 3e68ad3 commit cc3a80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/activity_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4290,7 +4290,7 @@ func TestActivityLog_processClientRecord(t *testing.T) {
require.Equal(t, byMonth[monthIndex].Namespaces, byNS)
require.Equal(t, byMonth[monthIndex].NewClients.Namespaces, byNS)

for _, typ := range []string{nonEntityTokenActivityType, secretSyncActivityType, entityActivityType, ACMEActivityType} {
for _, typ := range ActivityClientTypes {
if clientType == typ {
require.Contains(t, byMonth[monthIndex].Counts.clientsByType(typ), clientID)
require.Contains(t, byMonth[monthIndex].NewClients.Counts.clientsByType(typ), clientID)
Expand Down

0 comments on commit cc3a80f

Please sign in to comment.