Skip to content

Commit f082b73

Browse files
committed
Fix VS style errors
1 parent ba5ab25 commit f082b73

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/StackExchange.Redis.Tests/ConnectionFailedErrorsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ public async Task CheckFailureRecovered()
178178
{
179179
using var conn = Create(keepAlive: 1, connectTimeout: 10000, allowAdmin: true, log: Writer, shared: false);
180180

181-
await RunBlockingSynchronousWithExtraThreadAsync(innerScenario).ForAwait();
182-
void innerScenario()
181+
await RunBlockingSynchronousWithExtraThreadAsync(InnerScenario).ForAwait();
182+
void InnerScenario()
183183
{
184184
conn.GetDatabase();
185185
var server = conn.GetServer(conn.GetEndPoints()[0]);

tests/StackExchange.Redis.Tests/FailoverTests.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ public async Task SubscriptionsSurviveConnectionFailureAsync()
208208
var sub = conn.GetSubscriber();
209209
int counter = 0;
210210
Assert.True(sub.IsConnected());
211-
await sub.SubscribeAsync(channel, delegate
212-
{
213-
Interlocked.Increment(ref counter);
214-
}).ConfigureAwait(false);
211+
await sub.SubscribeAsync(channel, (_, _) => Interlocked.Increment(ref counter)).ConfigureAwait(false);
215212

216213
var profile1 = Log(profiler);
217214

@@ -257,8 +254,7 @@ await sub.SubscribeAsync(channel, delegate
257254

258255
// Ensure we've sent the subscribe command after reconnecting
259256
var profile2 = Log(profiler);
260-
//Assert.Equal(1, profile2.Count(p => p.Command == nameof(RedisCommand.SUBSCRIBE)));
261-
257+
// Assert.Equal(1, profile2.Count(p => p.Command == nameof(RedisCommand.SUBSCRIBE)));
262258
Log("Issuing ping after reconnected");
263259
sub.Ping();
264260

@@ -395,7 +391,7 @@ public async Task SubscriptionsSurvivePrimarySwitchAsync()
395391
Log(" IsReplica: " + !server.IsReplica);
396392
Log(" Type: " + server.ServerType);
397393
}
398-
//Skip.Inconclusive("Not enough latency.");
394+
// Skip.Inconclusive("Not enough latency.");
399395
}
400396
Assert.True(sanityCheck, $"B Connection: {TestConfig.Current.FailoverPrimaryServerAndPort} should be a replica");
401397
Assert.False(bConn.GetServer(TestConfig.Current.FailoverReplicaServerAndPort).IsReplica, $"B Connection: {TestConfig.Current.FailoverReplicaServerAndPort} should be a primary");

0 commit comments

Comments
 (0)