Skip to content

Commit bcda6df

Browse files
committed
Remove random empty string from test since it triggers a different exception
1 parent 80fa91d commit bcda6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/elasticsearch/test/unit/index/mapper/source/DefaultSourceMappingTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public void testDefaultMappingAndNoMapping() throws Exception {
137137
assertThat(mapper.type(), equalTo("my_type"));
138138
assertThat(mapper.sourceMapper().enabled(), equalTo(false));
139139
try {
140-
mapper = MapperTestUtils.newParser().parse(null, getRandom().nextBoolean() ? null : "", defaultMapping);
140+
mapper = MapperTestUtils.newParser().parse(null, null, defaultMapping);
141141
assertThat(mapper.type(), equalTo("my_type"));
142142
assertThat(mapper.sourceMapper().enabled(), equalTo(false));
143143
assert false;

0 commit comments

Comments
 (0)