File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ linters:
26
26
- revive
27
27
- staticcheck
28
28
- unused
29
+ - usetesting
29
30
- whitespace
30
31
settings :
31
32
depguard :
@@ -119,6 +120,8 @@ linters:
119
120
- -ST1000
120
121
- -ST1001 # duplicates revive.dot-imports
121
122
- -ST1022
123
+ usetesting :
124
+ os-temp-dir : true
122
125
exclusions :
123
126
presets :
124
127
- common-false-positives
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ func TestFillDefault(t *testing.T) {
148
148
Mounts : []Mount {
149
149
// Location will be passed through localpathutil.Expand() which will normalize the name
150
150
// (add a drive letter). So we must start with a valid local path to match it again later.
151
- {Location : filepath .Clean (os .TempDir ())},
151
+ {Location : filepath .Clean (t .TempDir ())},
152
152
{Location : "{{.Dir}}/{{.Param.ONE}}" , MountPoint : ptr .Of ("/mnt/{{.Param.ONE}}" )},
153
153
},
154
154
MountType : ptr .Of (NINEP ),
You can’t perform that action at this time.
0 commit comments