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
19f2c868
Commit
19f2c868
authored
Mar 13, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More info in test output
Trying to figure out socket failure discrepancies on Appveyor.
parent
49ca4d8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
+30
-3
BookSleeveTestBase.cs
StackExchange.Redis.Tests/Booksleeve/BookSleeveTestBase.cs
+7
-2
Config.cs
StackExchange.Redis.Tests/Booksleeve/Config.cs
+2
-1
Extensions.cs
StackExchange.Redis.Tests/Helpers/Extensions.cs
+20
-0
TestBase.cs
StackExchange.Redis.Tests/TestBase.cs
+1
-0
No files found.
StackExchange.Redis.Tests/Booksleeve/BookSleeveTestBase.cs
View file @
19f2c868
using
System
;
using
StackExchange.Redis.Tests.Helpers
;
using
System
;
using
System.Diagnostics
;
using
System.Threading.Tasks
;
using
Xunit
;
...
...
@@ -9,7 +10,11 @@ namespace StackExchange.Redis.Tests.Booksleeve
public
class
BookSleeveTestBase
{
public
ITestOutputHelper
Output
{
get
;
}
public
BookSleeveTestBase
(
ITestOutputHelper
output
)
=>
Output
=
output
;
public
BookSleeveTestBase
(
ITestOutputHelper
output
)
{
Output
=
output
;
Output
.
WriteFrameworkVersion
();
}
static
BookSleeveTestBase
()
{
...
...
StackExchange.Redis.Tests/Booksleeve/Config.cs
View file @
19f2c868
...
...
@@ -54,7 +54,7 @@ public void CanNotOpenNonsenseConnection_IP()
[
Fact
]
public
async
Task
CanNotOpenNonsenseConnection_DNS
()
{
await
Assert
.
ThrowsAsync
<
RedisConnectionException
>(
async
()
=>
var
ex
=
await
Assert
.
ThrowsAsync
<
RedisConnectionException
>(
async
()
=>
{
var
log
=
new
StringWriter
();
try
...
...
@@ -68,6 +68,7 @@ public async Task CanNotOpenNonsenseConnection_DNS()
Output
.
WriteLine
(
log
.
ToString
());
}
}).
ForAwait
();
Output
.
WriteLine
(
ex
.
ToString
());
}
[
Fact
]
...
...
StackExchange.Redis.Tests/Helpers/Extensions.cs
0 → 100644
View file @
19f2c868
using
Xunit.Abstractions
;
namespace
StackExchange.Redis.Tests.Helpers
{
public
static
class
Extensions
{
public
static
void
WriteFrameworkVersion
(
this
ITestOutputHelper
output
)
{
#if NET462
output
.
WriteLine
(
"Compiled under .NET 4.6.2"
);
#elif NETCOREAPP1_0
output
.
WriteLine
(
"Compiled under .NETCoreApp1.0"
);
#elif NETCOREAPP2_0
output
.
WriteLine
(
"Compiled under .NETCoreApp2.0"
);
#else
output
.
WriteLine
(
"Compiled under <unknown framework>"
);
#endif
}
}
}
StackExchange.Redis.Tests/TestBase.cs
View file @
19f2c868
...
...
@@ -23,6 +23,7 @@ public abstract class TestBase : IDisposable
protected
TestBase
(
ITestOutputHelper
output
)
{
Output
=
output
;
Output
.
WriteFrameworkVersion
();
Writer
=
new
TextWriterOutputHelper
(
output
);
socketManager
=
new
SocketManager
(
GetType
().
Name
);
ClearAmbientFailures
();
...
...
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