Commit 8c54c6b4 authored by Nick Craver's avatar Nick Craver

Tests: fix secure tests

These look at some global counters so can't depend on parallel bits - marking them as non-parallel.
parent 3f811f3d
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
namespace StackExchange.Redis.Tests namespace StackExchange.Redis.Tests
{ {
[Collection(NonParallelCollection.Name)]
public class Secure : TestBase public class Secure : TestBase
{ {
protected override string GetConfiguration() => protected override string GetConfiguration() =>
...@@ -42,7 +43,7 @@ public void MassiveBulkOpsFireAndForgetSecure(bool preserveOrder) ...@@ -42,7 +43,7 @@ public void MassiveBulkOpsFireAndForgetSecure(bool preserveOrder)
#if DEBUG #if DEBUG
long newAlloc = ConnectionMultiplexer.GetResultBoxAllocationCount(); long newAlloc = ConnectionMultiplexer.GetResultBoxAllocationCount();
Output.WriteLine("ResultBox allocations: {0}", newAlloc - oldAlloc); Output.WriteLine("ResultBox allocations: {0}", newAlloc - oldAlloc);
Assert.True(newAlloc - oldAlloc <= 2); Assert.True(newAlloc - oldAlloc <= 2, $"NewAllocs: {newAlloc}, OldAllocs: {oldAlloc}");
#endif #endif
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment