Add try catch to avoid test failures on windows

This commit is contained in:
Dean Herbert 2021-08-20 22:07:13 +09:00
parent 0aea39f5f1
commit 5e234fb746
1 changed files with 7 additions and 3 deletions

View File

@ -313,9 +313,13 @@ protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
// the storage may have changed from the initial location.
// this handles cleanup of the initial location.
InitialStorage.DeleteDirectory(string.Empty);
try
{
// the storage may have changed from the initial location.
// this handles cleanup of the initial location.
InitialStorage.DeleteDirectory(string.Empty);
}
catch { }
}
}
}