Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void shutdownThreadPool() {
}

public void testSuccessfulExecution() throws Exception {
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 10_000));
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 1000));
List<InferenceAction.Response> responses = randomInferenceResponseList(requests.size());

InferenceRunner inferenceRunner = mockInferenceRunner(invocation -> {
Expand Down Expand Up @@ -93,7 +93,7 @@ public void testSuccessfulExecutionOnEmptyRequest() throws Exception {
}

public void testInferenceRunnerAlwaysFails() throws Exception {
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 10_000));
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 1000));

InferenceRunner inferenceRunner = mock(invocation -> {
runWithRandomDelay(() -> {
Expand All @@ -115,7 +115,7 @@ public void testInferenceRunnerAlwaysFails() throws Exception {
}

public void testInferenceRunnerSometimesFails() throws Exception {
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 10_000));
List<InferenceAction.Request> requests = randomInferenceRequestList(between(1, 1000));

InferenceRunner inferenceRunner = mockInferenceRunner(invocation -> {
ActionListener<InferenceAction.Response> listener = invocation.getArgument(1);
Expand Down