예제 #1
0
 public void TestFixtureTearDown()
 {
     if (pool != null)
     {
         pool.Dispose();
         pool = null;
     }
 }
예제 #2
0
        public void TestFixtureSetUp()
        {
            this.BlocksGetWhilePopulatorForThatKeyIsRunning = false;

            pool = new MemcachedCachePool();
            pool.Servers = new string[] { "localhost" };
            pool.Start();
            Thread.Sleep(200); // FIXME: There seems to be a delay before the 
            // first sockets in the pool become usable.  If I remove this sleep then
            // the tests will fail because they cannot obtain an open connection to
            // the server from the available pool.
        }