Fixes lint error

The message from the linter makes a good point..
we're storing a reference for the mount processes, but we're not
using them.. Thus the committed lines.
pull/15782/head
x7upLime 2023-02-05 19:36:07 +02:00
parent 47981b75d9
commit 07f3f440ff
1 changed files with 8 additions and 0 deletions

View File

@ -302,6 +302,14 @@ func validateMountCmd(ctx context.Context, t *testing.T, profile string) { // no
}
defer func() {
// Still trying to stop mount processes that could otherwise
// (if something weird happens...) leave the test run hanging
// The worst thing that could happen is that we try to kill
// something that was aleardy killed...
for _, mp := range mntProcs {
mp.Stop(t)
}
cancel()
if *cleanup {
os.RemoveAll(tempDir)