Skip to content

Commit 4d3ff56

Browse files
Fix unit test
1 parent fde79b3 commit 4d3ff56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/job/config/RuleScopeTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testValidate_GivenMultipleFieldsIncludingInvalid() {
6363

6464
ElasticsearchStatusException e = expectThrows(ElasticsearchStatusException.class,
6565
() -> scope.validate(Sets.newHashSet("foo", "foobar")));
66-
assertThat(e.getMessage(), equalTo("Invalid detector rule: scope key 'bar' is invalid; select from [foo, foobar]"));
66+
assertThat(e.getMessage(), equalTo("Invalid detector rule: scope field 'bar' is invalid; select from [foo, foobar]"));
6767
}
6868

6969
public void testGetReferencedFilters_GivenEmpty() {

0 commit comments

Comments
 (0)