Skip to content

Commit 7c6d378

Browse files
committed
[app-builder] fix parallel tool test
1 parent e8a9124 commit 7c6d378

File tree

1 file changed

+3
-3
lines changed
  • app-builder/plugins/aipp-parallel-tool/src/test/java/modelengine/fit/jade/aipp/tool/parallel/domain

1 file changed

+3
-3
lines changed

app-builder/plugins/aipp-parallel-tool/src/test/java/modelengine/fit/jade/aipp/tool/parallel/domain/BatchRequestTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void shouldCallExecutorByConcurrencyWhenPostGivenToolCall() {
5656
this.toolExecuteService,
5757
this.taskExecutor,
5858
this.aippInstanceStatus,
59-
null);
59+
new HashMap<>());
6060
batchRequest.post();
6161

6262
Mockito.verify(this.taskExecutor, Mockito.times(config.getConcurrency())).post(Mockito.any());
@@ -88,7 +88,7 @@ void shouldGetResultWhenAwaitGivenToolCallSuccessfully() {
8888
this.toolExecuteService,
8989
this.taskExecutor,
9090
this.aippInstanceStatus,
91-
null);
91+
new HashMap<>());
9292
batchRequest.post();
9393
Map<String, Object> result = batchRequest.await();
9494

@@ -119,7 +119,7 @@ void shouldThrowExceptionWhenAwaitGivenToolCallException() {
119119
this.toolExecuteService,
120120
this.taskExecutor,
121121
this.aippInstanceStatus,
122-
null);
122+
new HashMap<>());
123123
batchRequest.post();
124124
IllegalStateException exception = Assertions.assertThrows(IllegalStateException.class, batchRequest::await);
125125

0 commit comments

Comments
 (0)