mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Fix linter hints
This commit is contained in:
parent
0e13fa24ae
commit
db51d5f99c
@ -839,14 +839,14 @@ func TestGetUserNSBindMountOptions(t *testing.T) {
|
||||
path := strings.Split(t.Name(), "/")[1]
|
||||
options, _ := getUserNSBindMountOptions(path, statfsMock)
|
||||
sort.Strings(options)
|
||||
optionString := strings.Join(options[:], ",")
|
||||
optionString := strings.Join(options, ",")
|
||||
mountOptions := testCases[path].mountoptions
|
||||
if optionString != mountOptions {
|
||||
t.Fatalf(`Mountoptions differ. Wanted: %s, returned: %s`, mountOptions, optionString)
|
||||
}
|
||||
}
|
||||
|
||||
for k, _ := range testCases {
|
||||
for k := range testCases {
|
||||
t.Run(k, testGetUserNSBindMountOptionsSingleCase)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user