|
1 | 1 | using System.Threading; |
2 | 2 | using System.Threading.Tasks; |
3 | 3 | using Xunit; |
4 | | -using Xunit.Abstractions; |
5 | 4 |
|
6 | 5 | namespace StackExchange.Redis.Tests; |
7 | 6 |
|
8 | 7 | [Collection(NonParallelCollection.Name)] |
9 | | -public class AggressiveTests : TestBase |
| 8 | +public class AggressiveTests(ITestOutputHelper output) : TestBase(output) |
10 | 9 | { |
11 | | - public AggressiveTests(ITestOutputHelper output) : base(output) { } |
12 | | - |
13 | | - [FactLongRunning] |
| 10 | + [Fact] |
14 | 11 | public async Task ParallelTransactionsWithConditions() |
15 | 12 | { |
| 13 | + Skip.UnlessLongRunning(); |
16 | 14 | const int Muxers = 4, Workers = 20, PerThread = 250; |
17 | 15 |
|
18 | 16 | var muxers = new IConnectionMultiplexer[Muxers]; |
@@ -73,9 +71,10 @@ public async Task ParallelTransactionsWithConditions() |
73 | 71 |
|
74 | 72 | private const int IterationCount = 5000, InnerCount = 20; |
75 | 73 |
|
76 | | - [FactLongRunning] |
| 74 | + [Fact] |
77 | 75 | public void RunCompetingBatchesOnSameMuxer() |
78 | 76 | { |
| 77 | + Skip.UnlessLongRunning(); |
79 | 78 | using var conn = Create(); |
80 | 79 | var db = conn.GetDatabase(); |
81 | 80 |
|
@@ -132,9 +131,10 @@ private static void BatchRunPings(IDatabase db) |
132 | 131 | } |
133 | 132 | } |
134 | 133 |
|
135 | | - [FactLongRunning] |
| 134 | + [Fact] |
136 | 135 | public async Task RunCompetingBatchesOnSameMuxerAsync() |
137 | 136 | { |
| 137 | + Skip.UnlessLongRunning(); |
138 | 138 | using var conn = Create(); |
139 | 139 | var db = conn.GetDatabase(); |
140 | 140 |
|
@@ -189,9 +189,10 @@ private static async Task BatchRunPingsAsync(IDatabase db) |
189 | 189 | } |
190 | 190 | } |
191 | 191 |
|
192 | | - [FactLongRunning] |
| 192 | + [Fact] |
193 | 193 | public void RunCompetingTransactionsOnSameMuxer() |
194 | 194 | { |
| 195 | + Skip.UnlessLongRunning(); |
195 | 196 | using var conn = Create(logTransactionData: false); |
196 | 197 | var db = conn.GetDatabase(); |
197 | 198 |
|
@@ -252,9 +253,10 @@ private void TranRunPings(IDatabase db) |
252 | 253 | } |
253 | 254 | } |
254 | 255 |
|
255 | | - [FactLongRunning] |
| 256 | + [Fact] |
256 | 257 | public async Task RunCompetingTransactionsOnSameMuxerAsync() |
257 | 258 | { |
| 259 | + Skip.UnlessLongRunning(); |
258 | 260 | using var conn = Create(logTransactionData: false); |
259 | 261 | var db = conn.GetDatabase(); |
260 | 262 |
|
|
0 commit comments