Skip to content

Commit 3fb1615

Browse files
committed
[no-relnote] Address lint errors in test
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 9e4696b commit 3fb1615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/nvidia-cdi-hook/create-symlinks/create-symlinks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ func TestCreateLink(t *testing.T) {
140140
}
141141

142142
for _, expectedLink := range tc.expectedLinks {
143-
path := strings.Replace(expectedLink.path, "{{ .containerRoot }}", containerRoot, -1)
144-
path = strings.Replace(path, "{{ .hostRoot }}", hostRoot, -1)
143+
path := strings.ReplaceAll(expectedLink.path, "{{ .containerRoot }}", containerRoot)
144+
path = strings.ReplaceAll(path, "{{ .hostRoot }}", hostRoot)
145145
if expectedLink.target != "" {
146146
target, err := symlinks.Resolve(path)
147147
require.ErrorIs(t, err, expectedLink.err)

0 commit comments

Comments
 (0)