Commit e8d90569 authored by Marc Gravell's avatar Marc Gravell

don't penalize us for reporting more than one way of failing

parent c7858415
using System; using System;
using System.Linq;
using System.Security.Authentication; using System.Security.Authentication;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
...@@ -104,6 +105,12 @@ public void SocketFailureError() ...@@ -104,6 +105,12 @@ public void SocketFailureError()
{ {
Assert.Equal(ConnectionFailureType.UnableToConnect, rce.FailureType); Assert.Equal(ConnectionFailureType.UnableToConnect, rce.FailureType);
} }
else if (outer.InnerException is AggregateException ae
&& ae.InnerExceptions.Any(e => e is RedisConnectionException rce2
&& rce2.FailureType == ConnectionFailureType.UnableToConnect))
{
// fine; at least *one* of them is the one we were hoping to see
}
else else
{ {
Writer.WriteLine(outer.InnerException.ToString()); Writer.WriteLine(outer.InnerException.ToString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment