Skip to content

Commit 49ca4d8

Browse files
committed
More booksleeve cleanup
1 parent c619fb1 commit 49ca4d8

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

StackExchange.Redis.Tests/BasicOps.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
using System;
2-
using System.Diagnostics;
3-
using System.Threading;
42
using System.Threading.Tasks;
5-
#if FEATURE_BOOKSLEEVE
6-
using BookSleeve;
7-
#endif
83
using StackExchange.Redis.KeyspaceIsolation;
94
using Xunit;
105
using Xunit.Abstractions;

StackExchange.Redis.Tests/TestBase.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
using Xunit;
1313
using Xunit.Abstractions;
1414

15-
#if FEATURE_BOOKSLEEVE
16-
using BookSleeve;
17-
#endif
18-
1915
namespace StackExchange.Redis.Tests
2016
{
2117
public abstract class TestBase : IDisposable
@@ -262,26 +258,6 @@ protected virtual ConnectionMultiplexer Create(
262258

263259
protected static string Me([CallerMemberName] string caller = null) => caller;
264260

265-
#if FEATURE_BOOKSLEEVE
266-
protected static RedisConnection GetOldStyleConnection(bool open = true, bool allowAdmin = false, bool waitForOpen = false, int syncTimeout = 5000, int ioTimeout = 5000)
267-
{
268-
return GetOldStyleConnection(TestConfig.Current.MasterServer, TestConfig.Current.MasterPort, open, allowAdmin, waitForOpen, syncTimeout, ioTimeout);
269-
}
270-
private static RedisConnection GetOldStyleConnection(string host, int port, bool open = true, bool allowAdmin = false, bool waitForOpen = false, int syncTimeout = 5000, int ioTimeout = 5000)
271-
{
272-
var conn = new RedisConnection(host, port, syncTimeout: syncTimeout, ioTimeout: ioTimeout, allowAdmin: allowAdmin);
273-
conn.Error += (s, args) =>
274-
{
275-
Trace.WriteLine(args.Exception.Message, args.Cause);
276-
};
277-
if (open)
278-
{
279-
var openAsync = conn.Open();
280-
if (waitForOpen) conn.Wait(openAsync);
281-
}
282-
return conn;
283-
}
284-
#endif
285261
protected static TimeSpan RunConcurrent(Action work, int threads, int timeout = 10000, [CallerMemberName] string caller = null)
286262
{
287263
if (work == null) throw new ArgumentNullException(nameof(work));

0 commit comments

Comments
 (0)