Commit 804bc3ce authored by Pavel Pochobut's avatar Pavel Pochobut

added infinite sync connection test

parent ab182e4a
......@@ -43,6 +43,29 @@ public void FastNoticesFailOnConnectingSync()
}
}
[TestCase]
public void ConnectsWhenBeginConnectCompletesSynchronously()
{
try
{
SocketManager.ConnectCompletionType = CompletionType.Sync;
using (var muxer = Create(keepAlive: 1, connectTimeout: 3000))
{
var conn = muxer.GetDatabase();
conn.Ping();
Assert.IsTrue(muxer.IsConnected);
}
ClearAmbientFailures();
}
finally
{
SocketManager.ConnectCompletionType = CompletionType.Any;
}
}
[TestCase]
public void FastNoticesFailOnConnectingAsync()
{
......
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