Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Dec 11, 2023
1 parent 71ac393 commit 19121cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ public int processedSlices() {
return processedSlices;
}

Set<String> processedQueries() {
public Set<String> processedQueries() {
return processedQueries;
}

Set<String> processedShards() {
public Set<String> processedShards() {
return processedShards;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;

Expand Down Expand Up @@ -161,6 +162,8 @@ public void testTaskContents() throws Exception {
if (o.operator().startsWith("LuceneSourceOperator[maxPageSize=" + PAGE_SIZE)) {
LuceneSourceOperator.Status oStatus = (LuceneSourceOperator.Status) o.status();
assertThat(oStatus.processedSlices(), lessThanOrEqualTo(oStatus.totalSlices()));
assertThat(oStatus.processedQueries(), equalTo(Set.of("*:*")));
assertThat(oStatus.processedShards(), equalTo(Set.of("test:0")));
assertThat(oStatus.sliceIndex(), lessThanOrEqualTo(oStatus.totalSlices()));
assertThat(oStatus.sliceMin(), greaterThanOrEqualTo(0));
assertThat(oStatus.sliceMax(), greaterThanOrEqualTo(oStatus.sliceMin()));
Expand Down

0 comments on commit 19121cc

Please sign in to comment.