1
0
Эх сурвалжийг харах

Fix Test Failure from Incorrect Mapping Conflict Assertion (#57085)

I think this is a left-over from #56915 where a change in assertion
message didn't make it to this very rare-case assertion.
Armin Braun 5 жил өмнө
parent
commit
05e27436e6

+ 1 - 1
server/src/internalClusterTest/java/org/elasticsearch/index/mapper/DynamicMappingIT.java

@@ -65,7 +65,7 @@ public class DynamicMappingIT extends ESIntegTestCase {
             // yet and sends a mapping update to the master node to map "bar" as "text". This
             // yet and sends a mapping update to the master node to map "bar" as "text". This
             // fails as it had been already mapped as a long by the previous index request.
             // fails as it had been already mapped as a long by the previous index request.
             assertThat(e.getMessage(),
             assertThat(e.getMessage(),
-                    Matchers.containsString("mapper [foo] of different type, current_type [long], merged_type [text]"));
+                    Matchers.containsString("mapper [foo] cannot be changed from type [long] to [text]"));
         }
         }
     }
     }