mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-21 15:57:49 +00:00
[no-relnote] Address lint errors in test
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
9e4696bf7d
commit
3fb1615d26
@ -140,8 +140,8 @@ func TestCreateLink(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, expectedLink := range tc.expectedLinks {
|
||||
path := strings.Replace(expectedLink.path, "{{ .containerRoot }}", containerRoot, -1)
|
||||
path = strings.Replace(path, "{{ .hostRoot }}", hostRoot, -1)
|
||||
path := strings.ReplaceAll(expectedLink.path, "{{ .containerRoot }}", containerRoot)
|
||||
path = strings.ReplaceAll(path, "{{ .hostRoot }}", hostRoot)
|
||||
if expectedLink.target != "" {
|
||||
target, err := symlinks.Resolve(path)
|
||||
require.ErrorIs(t, err, expectedLink.err)
|
||||
|
Loading…
Reference in New Issue
Block a user