Skip to content

Commit 039f8a3

Browse files
committed
test: protect deletion of the nupkg on CI (because folder structure does not exist yet)
1 parent 14449e9 commit 039f8a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Main.fs

+2-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ let ``should include the source file and the project file under 'fable' folder``
229229
VirtualWorkspace.fixtures.valid.``library-with-files``.bin.Release.``MyLibrary.1.0.0.nupkg``
230230
|> FileInfo
231231

232-
fileInfo.Delete()
232+
if fileInfo.Exists then
233+
fileInfo.Delete()
233234

234235
Command.Run(
235236
"dotnet",

0 commit comments

Comments
 (0)