Skip to content

Commit

Permalink
Disable on wasm test requiring parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Mar 29, 2021
1 parent d717f3e commit 2020a9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,15 @@ public void Empty_Success(bool derived, bool seeded)
r.NextBytes(Span<byte>.Empty);
}

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public void Shared_IsSingleton()
{
Assert.NotNull(Random.Shared);
Assert.Same(Random.Shared, Random.Shared);
Assert.Same(Random.Shared, Task.Run(() => Random.Shared).Result);
}

[Fact]
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
public void Shared_ParallelUsage()
{
using var barrier = new Barrier(2);
Expand Down

0 comments on commit 2020a9f

Please sign in to comment.