Skip to content

Commit a57550d

Browse files
committed
test: only remove files created during the test
1 parent c954b38 commit a57550d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

t/40_build_msi_windows_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,9 @@ func TestMSIinstaller(t *testing.T) {
113113
for _, file := range requiredFiles {
114114
assert.NoFileExistsf(t, `C:\Program Files\snclient\`+file, file+" has been removed")
115115
}
116+
assert.NoFileExistsf(t, `C:\Program Files\snclient\`, "snclient folder has been removed")
116117

117118
// remove remaining files
118119
os.Remove("../snclient_update.msi")
119-
os.Remove("../snclient.msi")
120-
os.Remove("snclient")
121120
os.Remove("snclient.ini")
122-
os.Remove("snclient.exe")
123121
}

0 commit comments

Comments
 (0)