Skip to content

Commit c88d0d4

Browse files
[no-relnote] Fix copylocks: use pointer reference in mps test loop
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 3af52c9 commit c88d0d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/mps-control-daemon/mps/device_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ func TestDevice(t *testing.T) {
102102
},
103103
}
104104

105-
for _, tc := range testCases {
105+
for i := range testCases {
106+
tc := &testCases[i]
106107
t.Run(tc.description, func(t *testing.T) {
107108
require.Equal(t, tc.expectedIsAtLeastVolta, tc.input.isAtLeastVolta())
108109
require.Equal(t, tc.expectedMaxClients, tc.input.maxClients())

0 commit comments

Comments
 (0)