Commit 4f1adbea authored by zhujiashun's avatar zhujiashun

Make sleep time longe in idle_timeout UT

parent 57995559
...@@ -82,7 +82,7 @@ TEST_F(SocketMapTest, idle_timeout) { ...@@ -82,7 +82,7 @@ TEST_F(SocketMapTest, idle_timeout) {
id = ptr->id(); id = ptr->id();
ptr->ReturnToPool(); ptr->ReturnToPool();
ptr.reset(NULL); ptr.reset(NULL);
usleep(TIMEOUT * 1000000L + 1100000L); usleep(TIMEOUT * 1000000L + 2000000L);
// Pooled connection should be `ReleaseAdditionalReference', // Pooled connection should be `ReleaseAdditionalReference',
// which destroyed the Socket. As a result `GetSocketFromPool' // which destroyed the Socket. As a result `GetSocketFromPool'
// should return a new one // should return a new one
......
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