Skip to content

Commit 35035ad

Browse files
Fixing test
1 parent c1b053a commit 35035ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/InputTypeTranslatorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void testFromMap_Throws_IfValueIsNotAString() {
110110
exception.getMessage(),
111111
is(
112112
"Validation Failed: 1: Input type translation value for key [CLASSIFICATION] "
113-
+ "must be a String that is not null and not empty, received: [Integer].;"
113+
+ "must be a String that is not null and not empty, received: [12345], type: [Integer].;"
114114
)
115115
);
116116
}
@@ -132,7 +132,7 @@ public void testFromMap_Throws_IfValueIsEmptyString() {
132132
exception.getMessage(),
133133
is(
134134
"Validation Failed: 1: Input type translation value for key [CLASSIFICATION] "
135-
+ "must be a String that is not null and not empty, received: [String].;"
135+
+ "must be a String that is not null and not empty, received: [], type: [String].;"
136136
)
137137
);
138138
}

0 commit comments

Comments
 (0)