Skip to content

Commit

Permalink
added timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Dec 17, 2019
1 parent 0228225 commit 40676bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import java.util.List;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiConsumer;

Expand Down Expand Up @@ -378,7 +379,7 @@ public String getType() {
errorHolder.set(e);
latch.countDown();
}));
latch.await();
latch.await(1, TimeUnit.MINUTES);
assertThat(errorHolder.get(), nullValue());
SimulatePipelineResponse response = responseHolder.get();
assertThat(response, notNullValue());
Expand Down

0 comments on commit 40676bc

Please sign in to comment.