mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
Enable usetesting linter
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -26,6 +26,7 @@ linters:
|
||||
- revive
|
||||
- staticcheck
|
||||
- unused
|
||||
- usetesting
|
||||
- whitespace
|
||||
settings:
|
||||
depguard:
|
||||
@@ -119,6 +120,8 @@ linters:
|
||||
- -ST1000
|
||||
- -ST1001 # duplicates revive.dot-imports
|
||||
- -ST1022
|
||||
usetesting:
|
||||
os-temp-dir: true
|
||||
exclusions:
|
||||
presets:
|
||||
- common-false-positives
|
||||
|
||||
@@ -148,7 +148,7 @@ func TestFillDefault(t *testing.T) {
|
||||
Mounts: []Mount{
|
||||
// Location will be passed through localpathutil.Expand() which will normalize the name
|
||||
// (add a drive letter). So we must start with a valid local path to match it again later.
|
||||
{Location: filepath.Clean(os.TempDir())},
|
||||
{Location: filepath.Clean(t.TempDir())},
|
||||
{Location: "{{.Dir}}/{{.Param.ONE}}", MountPoint: ptr.Of("/mnt/{{.Param.ONE}}")},
|
||||
},
|
||||
MountType: ptr.Of(NINEP),
|
||||
|
||||
Reference in new issue
Block a user