瀏覽代碼

[TEST] Raise request timeout windows is sometimes extraordinary slow

Simon Willnauer 11 年之前
父節點
當前提交
0457b0b765
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/test/java/org/elasticsearch/transport/AbstractSimpleTransportTests.java

+ 1 - 2
src/test/java/org/elasticsearch/transport/AbstractSimpleTransportTests.java

@@ -27,7 +27,6 @@ import org.elasticsearch.common.io.stream.StreamOutput;
 import org.elasticsearch.common.settings.ImmutableSettings;
 import org.elasticsearch.common.settings.Settings;
 import org.elasticsearch.common.unit.TimeValue;
-import org.elasticsearch.test.junit.annotations.TestLogging;
 import org.elasticsearch.test.ElasticsearchTestCase;
 import org.elasticsearch.test.transport.MockTransportService;
 import org.elasticsearch.threadpool.ThreadPool;
@@ -546,7 +545,7 @@ public abstract class AbstractSimpleTransportTests extends ElasticsearchTestCase
             final int counter = i;
             // now, try and send another request, this times, with a short timeout
             res = serviceB.submitRequest(nodeA, "sayHelloTimeoutDelayedResponse",
-                    new StringMessageRequest(counter + "ms"), options().withTimeout(300), new BaseTransportResponseHandler<StringMessageResponse>() {
+                    new StringMessageRequest(counter + "ms"), options().withTimeout(3000), new BaseTransportResponseHandler<StringMessageResponse>() {
                 @Override
                 public StringMessageResponse newInstance() {
                     return new StringMessageResponse();