提交 cf496237 编写于 作者: W william.liangf

加速测试

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@114 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 e214a73b
......@@ -37,11 +37,11 @@ public class ClientReconnectTest {
public void testReconnect() throws RemotingException, InterruptedException{
{
int port = NetUtils.getAvailablePort();
Client client = startClient(port,200);
Client client = startClient(port, 200);
Assert.assertEquals(false, client.isConnected());
Server server = startServer(port);
for(int i=0;i<5;i++){
Thread.sleep(100);
for (int i = 0; i < 50 && ! client.isConnected(); i++) {
Thread.sleep(10);
}
Assert.assertEquals(true, client.isConnected());
client.close();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册