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
b872f9d7
Commit
b872f9d7
authored
Oct 22, 2015
by
Jeremy Meng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable BookSleeve tests for dnxcore.
parent
4074eadd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
BasicOps.cs
StackExchange.Redis.Tests/BasicOps.cs
+7
-1
StackExchange.Redis.Tests.csproj
StackExchange.Redis.Tests/StackExchange.Redis.Tests.csproj
+5
-5
TestBase.cs
StackExchange.Redis.Tests/TestBase.cs
+4
-1
No files found.
StackExchange.Redis.Tests/BasicOps.cs
View file @
b872f9d7
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
using
System.Diagnostics
;
using
System.Diagnostics
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
#if FEATURE_BOOKSLEEVE
using
BookSleeve
;
using
BookSleeve
;
#endif
using
NUnit.Framework
;
using
NUnit.Framework
;
using
StackExchange.Redis.KeyspaceIsolation
;
using
StackExchange.Redis.KeyspaceIsolation
;
namespace
StackExchange.Redis.Tests
namespace
StackExchange.Redis.Tests
...
@@ -340,6 +342,7 @@ public void GetWithExpiryWrongTypeSync()
...
@@ -340,6 +342,7 @@ public void GetWithExpiryWrongTypeSync()
Assert
.
That
(
ex
.
Message
.
Equals
(
"WRONGTYPE Operation against a key holding the wrong kind of value"
));
Assert
.
That
(
ex
.
Message
.
Equals
(
"WRONGTYPE Operation against a key holding the wrong kind of value"
));
}
}
#if FEATURE_BOOKSLEEVE
[
Test
]
[
Test
]
[
TestCase
(
true
,
true
,
ResultCompletionMode
.
ConcurrentIfContinuation
)]
[
TestCase
(
true
,
true
,
ResultCompletionMode
.
ConcurrentIfContinuation
)]
[
TestCase
(
true
,
false
,
ResultCompletionMode
.
ConcurrentIfContinuation
)]
[
TestCase
(
true
,
false
,
ResultCompletionMode
.
ConcurrentIfContinuation
)]
...
@@ -389,7 +392,7 @@ public void MassiveBulkOpsAsyncOldStyle(bool withContinuation, bool suspendFlush
...
@@ -389,7 +392,7 @@ public void MassiveBulkOpsAsyncOldStyle(bool withContinuation, bool suspendFlush
completionMode
,
AsyncOpsQty
/
watch
.
Elapsed
.
TotalSeconds
);
completionMode
,
AsyncOpsQty
/
watch
.
Elapsed
.
TotalSeconds
);
}
}
}
}
#endif
[
Test
]
[
Test
]
[
TestCase
(
true
,
1
)]
[
TestCase
(
true
,
1
)]
...
@@ -434,6 +437,8 @@ public void MassiveBulkOpsSync(bool preserveOrder, int threads)
...
@@ -434,6 +437,8 @@ public void MassiveBulkOpsSync(bool preserveOrder, int threads)
#endif
#endif
}
}
}
}
#if FEATURE_BOOKSLEEVE
[
Test
]
[
Test
]
[
TestCase
(
ResultCompletionMode
.
Concurrent
,
1
)]
[
TestCase
(
ResultCompletionMode
.
Concurrent
,
1
)]
[
TestCase
(
ResultCompletionMode
.
ConcurrentIfContinuation
,
1
)]
[
TestCase
(
ResultCompletionMode
.
ConcurrentIfContinuation
,
1
)]
...
@@ -473,6 +478,7 @@ public void MassiveBulkOpsSyncOldStyle(ResultCompletionMode completionMode, int
...
@@ -473,6 +478,7 @@ public void MassiveBulkOpsSyncOldStyle(ResultCompletionMode completionMode, int
completionMode
,
threads
,
(
workPerThread
*
threads
)
/
timeTaken
.
TotalSeconds
);
completionMode
,
threads
,
(
workPerThread
*
threads
)
/
timeTaken
.
TotalSeconds
);
}
}
}
}
#endif
[
Test
]
[
Test
]
[
TestCase
(
true
,
1
)]
[
TestCase
(
true
,
1
)]
...
...
StackExchange.Redis.Tests/StackExchange.Redis.Tests.csproj
View file @
b872f9d7
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRAC
E
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;FEATURE_BOOKSLEEV
E
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<PlatformTarget>
AnyCPU
</PlatformTarget>
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<DefineConstants>
TRACE
;FEATURE_BOOKSLEEVE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Verbose|AnyCPU'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Verbose|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\Verbose\
</OutputPath>
<OutputPath>
bin\Verbose\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;
VERBOS
E
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;
FEATURE_BOOKSLEEV
E
</DefineConstants>
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Log Output|AnyCPU'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Log Output|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\Log Output\
</OutputPath>
<OutputPath>
bin\Log Output\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;
LOGOUTPUT
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;
FEATURE_BOOKSLEEVE
</DefineConstants>
<DebugType>
full
</DebugType>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Mono|AnyCPU'"
>
<OutputPath>
bin\Mono\
</OutputPath>
<OutputPath>
bin\Mono\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<DefineConstants>
TRACE
;FEATURE_BOOKSLEEVE
</DefineConstants>
<Optimize>
true
</Optimize>
<Optimize>
true
</Optimize>
<DebugType>
pdbonly
</DebugType>
<DebugType>
pdbonly
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<PlatformTarget>
AnyCPU
</PlatformTarget>
...
...
StackExchange.Redis.Tests/TestBase.cs
View file @
b872f9d7
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
#if FEATURE_BOOKSLEEVE
using
BookSleeve
;
using
BookSleeve
;
#endif
using
NUnit.Framework
;
using
NUnit.Framework
;
namespace
StackExchange.Redis.Tests
namespace
StackExchange.Redis.Tests
...
@@ -221,6 +223,7 @@ protected static string Me([CallerMemberName] string caller = null)
...
@@ -221,6 +223,7 @@ protected static string Me([CallerMemberName] string caller = null)
return
caller
;
return
caller
;
}
}
#if FEATURE_BOOKSLEEVE
protected
static
RedisConnection
GetOldStyleConnection
(
bool
open
=
true
,
bool
allowAdmin
=
false
,
bool
waitForOpen
=
false
,
int
syncTimeout
=
5000
,
int
ioTimeout
=
5000
)
protected
static
RedisConnection
GetOldStyleConnection
(
bool
open
=
true
,
bool
allowAdmin
=
false
,
bool
waitForOpen
=
false
,
int
syncTimeout
=
5000
,
int
ioTimeout
=
5000
)
{
{
return
GetOldStyleConnection
(
PrimaryServer
,
PrimaryPort
,
open
,
allowAdmin
,
waitForOpen
,
syncTimeout
,
ioTimeout
);
return
GetOldStyleConnection
(
PrimaryServer
,
PrimaryPort
,
open
,
allowAdmin
,
waitForOpen
,
syncTimeout
,
ioTimeout
);
...
@@ -239,7 +242,7 @@ private static RedisConnection GetOldStyleConnection(string host, int port, bool
...
@@ -239,7 +242,7 @@ private static RedisConnection GetOldStyleConnection(string host, int port, bool
}
}
return
conn
;
return
conn
;
}
}
#endif
protected
static
TimeSpan
RunConcurrent
(
Action
work
,
int
threads
,
int
timeout
=
10000
,
[
CallerMemberName
]
string
caller
=
null
)
protected
static
TimeSpan
RunConcurrent
(
Action
work
,
int
threads
,
int
timeout
=
10000
,
[
CallerMemberName
]
string
caller
=
null
)
{
{
if
(
work
==
null
)
throw
new
ArgumentNullException
(
"work"
);
if
(
work
==
null
)
throw
new
ArgumentNullException
(
"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