Skip to content

Commit 7d1aed2

Browse files
committed
Cleanup + stability
1 parent 585ada8 commit 7d1aed2

File tree

8 files changed

+2
-15
lines changed

8 files changed

+2
-15
lines changed

tests/StackExchange.Redis.Tests/AsyncTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ namespace StackExchange.Redis.Tests;
99
[Collection(NonParallelCollection.Name)]
1010
public class AsyncTests(ITestOutputHelper output) : TestBase(output)
1111
{
12-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
13-
1412
[Fact]
1513
public async Task AsyncTasksReportFailureIfServerUnavailable()
1614
{

tests/StackExchange.Redis.Tests/ClientKillTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ namespace StackExchange.Redis.Tests;
1010

1111
public class ClientKillTests(ITestOutputHelper output) : TestBase(output)
1212
{
13-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
14-
1513
[Fact]
1614
public async Task ClientKill()
1715
{

tests/StackExchange.Redis.Tests/ConnectionShutdownTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ namespace StackExchange.Redis.Tests;
77

88
public class ConnectionShutdownTests(ITestOutputHelper output) : TestBase(output)
99
{
10-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
11-
1210
[Fact(Skip = "Unfriendly")]
1311
public async Task ShutdownRaisesConnectionFailedAndRestore()
1412
{

tests/StackExchange.Redis.Tests/Issues/SO25567566Tests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ namespace StackExchange.Redis.Tests.Issues;
66

77
public class SO25567566Tests(ITestOutputHelper output) : TestBase(output)
88
{
9-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
10-
119
[Fact]
1210
public async Task Execute()
1311
{

tests/StackExchange.Redis.Tests/LockingTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ namespace StackExchange.Redis.Tests;
99
[Collection(NonParallelCollection.Name)]
1010
public class LockingTests(ITestOutputHelper output) : TestBase(output)
1111
{
12-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
13-
1412
public enum TestMode
1513
{
1614
MultiExec,

tests/StackExchange.Redis.Tests/LoggerTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ namespace StackExchange.Redis.Tests;
1212
[Collection(NonParallelCollection.Name)]
1313
public class LoggerTests(ITestOutputHelper output) : TestBase(output)
1414
{
15-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
16-
1715
[Fact]
1816
public async Task BasicLoggerConfig()
1917
{

tests/StackExchange.Redis.Tests/ScriptingTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ async Task<bool> EvaluateScript()
435435
[Fact]
436436
public async Task CompareScriptToDirect()
437437
{
438+
Skip.UnlessLongRunning();
438439
await using var conn = Create(allowAdmin: true, require: RedisFeatures.v2_6_0);
439440

440441
const string Script = "return redis.call('incr', KEYS[1])";
@@ -448,7 +449,7 @@ public async Task CompareScriptToDirect()
448449
// we're using a pipeline here, so send 1000 messages, but for timing: only care about the last
449450
const int Loop = 5000;
450451
RedisKey key = Me();
451-
RedisKey[] keys = new[] { key }; // script takes an array
452+
RedisKey[] keys = [key]; // script takes an array
452453

453454
// run via script
454455
db.KeyDelete(key, CommandFlags.FireAndForget);

tests/StackExchange.Redis.Tests/SocketTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ namespace StackExchange.Redis.Tests;
66

77
public class SocketTests(ITestOutputHelper output) : TestBase(output)
88
{
9-
protected override string GetConfiguration() => TestConfig.Current.PrimaryServerAndPort;
10-
119
[Fact]
1210
public async Task CheckForSocketLeaks()
1311
{

0 commit comments

Comments
 (0)