[TEST] Fix failure in SearchFieldsTests.testUidBasedScriptFields.

Sorting fails on unmapped fields so the new propagation delay of the mappings
exposed this issue. I added explicit mappings as part of index creation to fix it.
This commit is contained in:
Adrien Grand 2014-07-02 09:38:59 +02:00
parent a96f9a7c83
commit 309a284e8d
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ public class SearchFieldsTests extends ElasticsearchIntegrationTest {
@Test
public void testUidBasedScriptFields() throws Exception {
createIndex("test");
prepareCreate("test").addMapping("type1", "num1", "type=long").execute().actionGet();
ensureYellow();
int numDocs = randomIntBetween(1, 30);