Skip to content

Commit

Permalink
fix failed ut
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <[email protected]>
  • Loading branch information
ylwu-amzn committed Oct 3, 2023
1 parent 2948938 commit 3063dfe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

package org.opensearch.ml.action.tasks;

import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
Expand Down Expand Up @@ -61,6 +63,6 @@ public void setup() {

public void test_DoExecute() {
searchTaskTransportAction.doExecute(null, searchRequest, actionListener);
verify(client).search(searchRequest, actionListener);
verify(client).search(eq(searchRequest), any());
}
}

0 comments on commit 3063dfe

Please sign in to comment.