Skip to content

Commit 62855d4

Browse files
committed
removing hard-coded class name from string
1 parent 49f8f44 commit 62855d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/action/bulk/TransportSimulateBulkActionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public void onFailure(Exception e) {
378378
IndexMetadata imd = invocation.getArgument(0);
379379
if (indicesWithInvalidMappings.contains(imd.getIndex().getName())
380380
// We only want to throw exceptions inside TransportSimulateBulkAction:
381-
&& invocation.getArgument(1).getClass().getSimpleName().contains("TransportSimulateBulkAction")) {
381+
&& invocation.getArgument(1).getClass().getSimpleName().contains(TransportSimulateBulkAction.class.getSimpleName())) {
382382
throw new ElasticsearchException("invalid mapping");
383383
} else {
384384
// we don't actually care what is returned, as long as no exception is thrown the request is considered valid:

0 commit comments

Comments
 (0)