Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dad1a28

Browse files
committed
Fix lint
1 parent 339f1de commit dad1a28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/database/querier_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,9 +2042,9 @@ func TestAuthorizedAuditLogs(t *testing.T) {
20422042
require.NoError(t, err)
20432043

20442044
// Then: All logs for both organizations are returned and count matches
2045-
expectedLogs := append(orgAuditLogs[first], orgAuditLogs[second]...)
2046-
expectedCount := int64(len(expectedLogs))
2047-
require.Equal(t, expectedCount, count, "count should match sum of both organizations")
2045+
expectedLogs := append([]uuid.UUID{}, orgAuditLogs[first]...)
2046+
expectedLogs = append(expectedLogs, orgAuditLogs[second]...)
2047+
require.Equal(t, int64(len(expectedLogs)), count, "count should match sum of both organizations")
20482048
require.ElementsMatch(t, expectedLogs, auditOnlyIDs(logs), "logs from both organizations should be returned")
20492049
})
20502050

0 commit comments

Comments
 (0)