Skip to content

Commit f162694

Browse files
committed
Unit test use shadowed copied value
1 parent f56fcf9 commit f162694

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/rbac/authz_internal_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ func testAuthorize(t *testing.T, name string, subject subject, sets ...[]authTes
662662
require.NoError(t, err)
663663
for _, cases := range sets {
664664
for _, c := range cases {
665+
c := c
665666
t.Run(name, func(t *testing.T) {
666667
t.Parallel()
667668
for _, a := range c.actions {

0 commit comments

Comments
 (0)