Skip to content

Commit

Permalink
#51390 try with diff MinAvailableForSufficientRandomness
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Aug 3, 2022
1 parent ac07867 commit 038626b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ protected static string GetNamedPipeServerStreamName()
}

const int MinUdsPathLength = 104; // required min is 92, but every platform we currently target is at least 104
const int MinAvailableForSufficientRandomness = 5; // we want enough randomness in the name to avoid conflicts between concurrent tests
string prefix = Path.Combine(Path.GetTempPath(), "FxPipe");
const int MinAvailableForSufficientRandomness = 4; // we want enough randomness in the name to avoid conflicts between concurrent tests
string prefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_");
int availableLength = MinUdsPathLength - prefix.Length - 1; // 1 - for possible null terminator
Assert.True(availableLength >= MinAvailableForSufficientRandomness, $"UDS prefix {prefix} length {prefix.Length} is too long");

Expand Down

0 comments on commit 038626b

Please sign in to comment.