Skip to content

Commit 0b90657

Browse files
committed
workaround for locked PDBs causing delete on cleanup to fail
1 parent 447626e commit 0b90657

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ServiceControl.AcceptanceTests/AcceptanceTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ static void Delete(string path)
215215
Directory.SetAccessControl(path, directorySecurity);
216216
}
217217

218-
Directory.Delete(path);
218+
if (!Directory.GetFiles(path).Any())
219+
{
220+
Directory.Delete(path);
221+
}
219222
}
220223
finally
221224
{

0 commit comments

Comments
 (0)