Increase time allowed for large state test (elastic/elasticsearch#871)

Previously it would fail on some old/slow development machines

Closes elastic/elasticsearch#805

Original commit: elastic/x-pack-elasticsearch@6f182ed125
This commit is contained in:
David Roberts 2017-02-07 15:39:59 +00:00 committed by GitHub
parent af10f880fb
commit 3eec3ab42a
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ public class StateProcessorTests extends ESTestCase {
/**
* This test is designed to pick up N-squared processing in the state consumption code. The size of the state document
* is comparable to those that the C++ code will create for a huge model. 5 seconds is an overestimate of the time
* is comparable to those that the C++ code will create for a huge model. 10 seconds is an overestimate of the time
* required to avoid spurious failures due to VM stalls - on a reasonable spec laptop this should take around 1 second.
*/
@Timeout(millis = 5 * 1000)
@Timeout(millis = 10 * 1000)
public void testLargeStateRead() throws Exception {
StringBuilder builder = new StringBuilder(NUM_LARGE_DOCS * (LARGE_DOC_SIZE + 10)); // 10 for header and separators
for (int docNum = 1; docNum <= NUM_LARGE_DOCS; ++docNum) {