Skip to content

Commit 40676bc

Browse files
committed
added timeout
1 parent 0228225 commit 40676bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/test/java/org/elasticsearch/action/ingest/SimulateExecutionServiceTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import java.util.List;
4343
import java.util.Map;
4444
import java.util.concurrent.CountDownLatch;
45+
import java.util.concurrent.TimeUnit;
4546
import java.util.concurrent.atomic.AtomicReference;
4647
import java.util.function.BiConsumer;
4748

@@ -378,7 +379,7 @@ public String getType() {
378379
errorHolder.set(e);
379380
latch.countDown();
380381
}));
381-
latch.await();
382+
latch.await(1, TimeUnit.MINUTES);
382383
assertThat(errorHolder.get(), nullValue());
383384
SimulatePipelineResponse response = responseHolder.get();
384385
assertThat(response, notNullValue());

0 commit comments

Comments
 (0)