Skip to content

Commit ab612ba

Browse files
committed
randomFrom
1 parent 80521c2 commit ab612ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/index/mapper/KeywordFieldTypeTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public void testFetchSourceValue() throws IOException {
245245
ScriptCompiler.NONE,
246246
Integer.MAX_VALUE,
247247
IndexVersion.current(),
248-
Mapper.SourceKeepMode.NONE
248+
randomFrom(Mapper.SourceKeepMode.values())
249249
).normalizer("lowercase").build(MapperBuilderContext.root(false, false)).fieldType();
250250
assertEquals(List.of("value"), fetchSourceValue(normalizerMapper, "VALUE"));
251251
assertEquals(List.of("42"), fetchSourceValue(normalizerMapper, 42L));

0 commit comments

Comments
 (0)