public void TearDown() { if (pool != null) { pool.Dispose(); pool = null; } }
public void Constructor_WithSockIOPool_SetsProperties() { pool.Dispose(); pool = new MemcachedCachePool(SockIOPool.GetInstance("pool")); Assert.AreEqual("pool", pool.PoolName); Assert.AreSame(SockIOPool.GetInstance("pool"), pool.SockIOPool); }
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. }
public void SetUp() { pool = new MemcachedCachePool(); }