Fix reindex test when log level is debug
When log level is debug we'd dereference null because the test was being cute and cutting corners. Relates to #25256
This commit is contained in:
parent
1f14d042f6
commit
8d9a08e239
|
@ -566,12 +566,11 @@ public class AsyncBulkByScrollActionTests extends ESTestCase {
|
|||
}
|
||||
|
||||
public void testCancelBeforeSendBulkRequest() throws Exception {
|
||||
// We bail so early we don't need to pass in a half way valid response.
|
||||
cancelTaskCase((DummyAsyncBulkByScrollAction action) -> action.sendBulkRequest(timeValueNanos(System.nanoTime()), null));
|
||||
cancelTaskCase((DummyAsyncBulkByScrollAction action) ->
|
||||
action.sendBulkRequest(timeValueNanos(System.nanoTime()), new BulkRequest()));
|
||||
}
|
||||
|
||||
public void testCancelBeforeOnBulkResponse() throws Exception {
|
||||
// We bail so early we don't need to pass in a half way valid response.
|
||||
cancelTaskCase((DummyAsyncBulkByScrollAction action) ->
|
||||
action.onBulkResponse(timeValueNanos(System.nanoTime()), new BulkResponse(new BulkItemResponse[0], 0)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue