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
553f6da1
Commit
553f6da1
authored
Jan 18, 2016
by
Marc Gravell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'CoreCLR' of github.com:StackExchange/StackExchange.Redis
parents
8954a9c5
2b7498d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
TestBase.cs
StackExchange.Redis.Tests/TestBase.cs
+12
-0
No files found.
StackExchange.Redis.Tests/TestBase.cs
View file @
553f6da1
...
...
@@ -50,6 +50,9 @@ static TestBase()
{
Console
.
WriteLine
(
"Unobserved: "
+
args
.
Exception
);
args
.
SetObserved
();
#if CORE_CLR
if
(
IgnorableExceptionPredicates
.
Any
(
predicate
=>
predicate
(
args
.
Exception
.
InnerException
)))
return
;
#endif
Interlocked
.
Increment
(
ref
failCount
);
lock
(
exceptions
)
{
...
...
@@ -57,6 +60,15 @@ static TestBase()
}
};
}
#if CORE_CLR
static
Func
<
Exception
,
bool
>[]
IgnorableExceptionPredicates
=
new
Func
<
Exception
,
bool
>[]
{
e
=>
e
!=
null
&&
e
is
ObjectDisposedException
&&
e
.
Message
.
Equals
(
"Cannot access a disposed object.\r\nObject name: 'System.Net.Sockets.NetworkStream'."
),
e
=>
e
!=
null
&&
e
is
IOException
&&
e
.
Message
.
StartsWith
(
"Unable to read data from the transport connection:"
)
};
#endif
protected
void
OnConnectionFailed
(
object
sender
,
ConnectionFailedEventArgs
e
)
{
Interlocked
.
Increment
(
ref
failCount
);
...
...
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