Skip to content

Commit

Permalink
Merge pull request #433 from limebell/bugfix-filestore
Browse files Browse the repository at this point in the history
Fixed a FileStoreFixture bug
  • Loading branch information
limebell committed Aug 14, 2019
2 parents 4334025 + 399f587 commit af529f4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Libplanet.Tests/Store/FileStoreFixture.cs
@@ -1,6 +1,8 @@
using System;
using System.IO;
using System.Threading;
using Libplanet.Store;
using Serilog;

namespace Libplanet.Tests.Store
{
Expand All @@ -18,9 +20,18 @@ public FileStoreFixture()

public void Dispose()
{
if (Directory.Exists(Path))
while (Directory.Exists(Path))
{
Directory.Delete(Path, true);
try
{
Directory.Delete(Path, true);
}
catch (IOException)
{
Log.Debug("IOException occurred during dispose()");
}

Thread.Sleep(0);
}
}
}
Expand Down

0 comments on commit af529f4

Please sign in to comment.