Skip to content

Commit 477ff82

Browse files
committed
better
1 parent 51a15c3 commit 477ff82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/compute/test/src/main/java/org/elasticsearch/compute/test/SourceOperatorTestCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
import java.util.Map;
1111

12-
import static org.hamcrest.Matchers.hasKey;
12+
import static org.elasticsearch.test.MapMatcher.assertMap;
13+
import static org.elasticsearch.test.MapMatcher.matchesMap;
1314

1415
public abstract class SourceOperatorTestCase extends AnyOperatorTestCase {
1516
@Override
1617
protected void assertEmptyStatus(Map<String, Object> map) {
17-
assertThat(map, hasKey("pages_emitted"));
18-
assertThat(map, hasKey("rows_emitted"));
18+
assertMap(map, matchesMap().extraOk().entry("pages_emitted", 0).entry("rows_emitted", 0));
1919
}
2020
}

0 commit comments

Comments
 (0)