Skip to content

Commit

Permalink
Make test more robust
Browse files Browse the repository at this point in the history
This helps especially on Windows.
  • Loading branch information
ermshiperete committed Aug 4, 2022
1 parent 544c994 commit a2f1ae6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/icu.net.tests/NativeMethods/DllResolverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ public void TearDown()
if (string.IsNullOrEmpty(_tempPath))
return;

Directory.Delete(_tempPath, true);
try
{
Directory.Delete(_tempPath, true);
}
catch (System.Exception)
{
// just ignore
}
_tempPath = null;
}

Expand Down

0 comments on commit a2f1ae6

Please sign in to comment.