Skip to content

Commit

Permalink
Use random file names in the TZ tests (#50339)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekgh authored Mar 29, 2021
1 parent 99f4062 commit 6b88f89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,7 @@ public static void GetSystemTimeZones_AllTimeZonesHaveOffsetInValidRange()
[InlineData("<+00>0<+01>,A/0,J365/25", 0, 0, false)]
public static void NJulianRuleTest(string posixRule, int dayNumber, int monthNumber, bool shouldSucceed)
{
string zoneFilePath = Path.GetTempPath() + "dotnet_tz";
string zoneFilePath = Path.GetTempPath() + Path.GetRandomFileName();
using (FileStream fs = new FileStream(zoneFilePath, FileMode.Create))
{
fs.Write(timeZoneFileContents.AsSpan());
Expand Down

0 comments on commit 6b88f89

Please sign in to comment.