Restoring code removed by mistake.

This commit is contained in:
Simone Bordet 2014-01-08 16:49:04 +01:00
parent dbee351543
commit 152dfaa293
1 changed files with 3 additions and 0 deletions

View File

@ -169,6 +169,7 @@ public class IdleTimeoutTest extends AbstractTest
QueuedThreadPool threadPool = new QueuedThreadPool(); QueuedThreadPool threadPool = new QueuedThreadPool();
threadPool.setName(threadPool.getName() + "-client"); threadPool.setName(threadPool.getName() + "-client");
clientFactory = newSPDYClientFactory(threadPool); clientFactory = newSPDYClientFactory(threadPool);
clientFactory.start();
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2); SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
client.setIdleTimeout(idleTimeout); client.setIdleTimeout(idleTimeout);
Session session = client.connect(address, null); Session session = client.connect(address, null);
@ -194,6 +195,7 @@ public class IdleTimeoutTest extends AbstractTest
QueuedThreadPool threadPool = new QueuedThreadPool(); QueuedThreadPool threadPool = new QueuedThreadPool();
threadPool.setName(threadPool.getName() + "-client"); threadPool.setName(threadPool.getName() + "-client");
clientFactory = newSPDYClientFactory(threadPool); clientFactory = newSPDYClientFactory(threadPool);
clientFactory.start();
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2); SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
client.setIdleTimeout(idleTimeout); client.setIdleTimeout(idleTimeout);
Session session = client.connect(address, null); Session session = client.connect(address, null);
@ -226,6 +228,7 @@ public class IdleTimeoutTest extends AbstractTest
QueuedThreadPool threadPool = new QueuedThreadPool(); QueuedThreadPool threadPool = new QueuedThreadPool();
threadPool.setName(threadPool.getName() + "-client"); threadPool.setName(threadPool.getName() + "-client");
clientFactory = newSPDYClientFactory(threadPool); clientFactory = newSPDYClientFactory(threadPool);
clientFactory.start();
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2); SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
client.setIdleTimeout(idleTimeout); client.setIdleTimeout(idleTimeout);
Session session = client.connect(address, null); Session session = client.connect(address, null);