Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Brooks committed Jun 9, 2023
1 parent 82c3a04 commit bd86c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ public void testPendingRefreshWithIntervalChange() throws Exception {
private static void scheduleRefresh(IndexShard shard, boolean expectRefresh) {
PlainActionFuture<Boolean> future = PlainActionFuture.newFuture();
shard.scheduledRefresh(future);
if (expectRefresh) {
assertTrue(future.actionGet());
} else {
assertFalse(future.actionGet());
}
assertThat(future.actionGet(), equalTo(expectRefresh));
}

private void ensureNoPendingScheduledRefresh(ThreadPool threadPool) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public RefreshResult refresh(String source) {

@Override
public void maybeRefresh(String source, ActionListener<RefreshResult> listener) throws EngineException {
ActionListener.completeWith(listener, () -> RefreshResult.NO_REFRESH);
listener.onResponse(RefreshResult.NO_REFRESH);
}

@Override
Expand Down

0 comments on commit bd86c9e

Please sign in to comment.