public virtual void OnTearDown() { TaskManager.Dispose(); Environment?.CacheContainer.Dispose(); Logger.Debug("Deleting TestBasePath: {0}", TestBasePath.ToString()); for (var i = 0; i < 5; i++) { try { TestBasePath.Delete(); break; } catch (Exception) { Thread.Sleep(100); } } if (TestBasePath.Exists()) { Logger.Warning("Error deleting TestBasePath: {0}", TestBasePath.ToString()); } NPath.FileSystem = null; }
public virtual void OnTearDown() { TaskManager.Dispose(); Environment?.CacheContainer.Dispose(); BranchesCache.Instance = null; GitAheadBehindCache.Instance = null; GitLocksCache.Instance = null; GitLogCache.Instance = null; GitStatusCache.Instance = null; GitUserCache.Instance = null; RepositoryInfoCache.Instance = null; Logger.Debug("Deleting TestBasePath: {0}", TestBasePath.ToString()); for (var i = 0; i < 5; i++) { try { TestBasePath.Delete(); break; } catch (Exception) { Thread.Sleep(100); } } if (TestBasePath.Exists()) { Logger.Warning("Error deleting TestBasePath: {0}", TestBasePath.ToString()); } NPath.FileSystem = null; }