Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
49ca4d8a
Commit
49ca4d8a
authored
Mar 13, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More booksleeve cleanup
parent
c619fb11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
BasicOps.cs
StackExchange.Redis.Tests/BasicOps.cs
+0
-5
TestBase.cs
StackExchange.Redis.Tests/TestBase.cs
+0
-24
No files found.
StackExchange.Redis.Tests/BasicOps.cs
View file @
49ca4d8a
using
System
;
using
System.Diagnostics
;
using
System.Threading
;
using
System.Threading.Tasks
;
#if FEATURE_BOOKSLEEVE
using
BookSleeve
;
#endif
using
StackExchange.Redis.KeyspaceIsolation
;
using
Xunit
;
using
Xunit.Abstractions
;
...
...
StackExchange.Redis.Tests/TestBase.cs
View file @
49ca4d8a
...
...
@@ -12,10 +12,6 @@
using
Xunit
;
using
Xunit.Abstractions
;
#if FEATURE_BOOKSLEEVE
using
BookSleeve
;
#endif
namespace
StackExchange.Redis.Tests
{
public
abstract
class
TestBase
:
IDisposable
...
...
@@ -262,26 +258,6 @@ protected IServer GetAnyMaster(ConnectionMultiplexer muxer)
protected
static
string
Me
([
CallerMemberName
]
string
caller
=
null
)
=>
caller
;
#if FEATURE_BOOKSLEEVE
protected
static
RedisConnection
GetOldStyleConnection
(
bool
open
=
true
,
bool
allowAdmin
=
false
,
bool
waitForOpen
=
false
,
int
syncTimeout
=
5000
,
int
ioTimeout
=
5000
)
{
return
GetOldStyleConnection
(
TestConfig
.
Current
.
MasterServer
,
TestConfig
.
Current
.
MasterPort
,
open
,
allowAdmin
,
waitForOpen
,
syncTimeout
,
ioTimeout
);
}
private
static
RedisConnection
GetOldStyleConnection
(
string
host
,
int
port
,
bool
open
=
true
,
bool
allowAdmin
=
false
,
bool
waitForOpen
=
false
,
int
syncTimeout
=
5000
,
int
ioTimeout
=
5000
)
{
var
conn
=
new
RedisConnection
(
host
,
port
,
syncTimeout
:
syncTimeout
,
ioTimeout
:
ioTimeout
,
allowAdmin
:
allowAdmin
);
conn
.
Error
+=
(
s
,
args
)
=>
{
Trace
.
WriteLine
(
args
.
Exception
.
Message
,
args
.
Cause
);
};
if
(
open
)
{
var
openAsync
=
conn
.
Open
();
if
(
waitForOpen
)
conn
.
Wait
(
openAsync
);
}
return
conn
;
}
#endif
protected
static
TimeSpan
RunConcurrent
(
Action
work
,
int
threads
,
int
timeout
=
10000
,
[
CallerMemberName
]
string
caller
=
null
)
{
if
(
work
==
null
)
throw
new
ArgumentNullException
(
nameof
(
work
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment