Esempio n. 1
0
 /// <summary>Expect connect timeout, because the connection backlog is consumed.</summary>
 /// <exception cref="System.Exception"/>
 public virtual void TestConnectTimeout()
 {
     ConsumeConnectionBacklog();
     try
     {
         fs.ListFiles(new Path("/"), false);
         NUnit.Framework.Assert.Fail("expected timeout");
     }
     catch (SocketTimeoutException e)
     {
         NUnit.Framework.Assert.AreEqual("connect timed out", e.Message);
     }
 }