You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ML] Assert that a no-op job creates no results nor state
If a job is opened and then closed and does nothing in
between then it should not persist any results or state
documents. This change adapts the no-op job test to
assert no results in addition to no state, and to log
any documents that cause this assertion to fail.
Relates elastic/ml-cpp#512
Relates elastic#43680
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/qa/native-multi-node-tests/src/test/java/org/elasticsearch/xpack/ml/integration/PersistJobIT.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
importjava.util.List;
24
24
importjava.util.stream.Collectors;
25
25
26
+
importstaticorg.hamcrest.Matchers.empty;
26
27
importstaticorg.hamcrest.Matchers.equalTo;
27
28
importstaticorg.hamcrest.Matchers.is;
28
29
@@ -178,13 +179,12 @@ public void testPersistJobOnGracefulShutdown_givenNoDataAndNoTimeAdvance() throw
0 commit comments