Skip to content

Commit 8386d10

Browse files
authored
Make verifier return type as ActionResponse (#7167)
Signed-off-by: Heemin Kim <heemin@amazon.com>
1 parent 142ae46 commit 8386d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/framework/src/main/java/org/opensearch/test/rest/RestActionTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void reset() {
122122
* @param verifier A function which is called in place of {@link #doExecute(ActionType, ActionRequest, ActionListener)}
123123
*/
124124
public <Request extends ActionRequest, Response extends ActionResponse> void setExecuteVerifier(
125-
BiFunction<ActionType<Response>, Request, Void> verifier
125+
BiFunction<ActionType<Response>, Request, Response> verifier
126126
) {
127127
executeVerifier.set(verifier);
128128
}
@@ -142,7 +142,7 @@ public <Request extends ActionRequest, Response extends ActionResponse> void doE
142142
* @param verifier A function which is called in place of {@link #executeLocally(ActionType, ActionRequest, TaskListener)}
143143
*/
144144
public <Request extends ActionRequest, Response extends ActionResponse> void setExecuteLocallyVerifier(
145-
BiFunction<ActionType<Response>, Request, Void> verifier
145+
BiFunction<ActionType<Response>, Request, Response> verifier
146146
) {
147147
executeLocallyVerifier.set(verifier);
148148
}

0 commit comments

Comments
 (0)