diff options
author | Areek Zillur <areek.zillur@elasticsearch.com> | 2017-02-09 15:27:30 -0500 |
---|---|---|
committer | Areek Zillur <areek.zillur@elasticsearch.com> | 2017-02-09 15:34:22 -0500 |
commit | 990918a65536bd1a6b9daf7cb3c6e3588a00b8ce (patch) | |
tree | fd6b6bd41d0efe7298d06afca82f2b25dd4384c8 /core/src/test/java/org/elasticsearch/action/support | |
parent | cb35b3785a1202329786a20e9c1cbd8a75bd621e (diff) |
fix failing tests for BulkShardRequest.tostring
Diffstat (limited to 'core/src/test/java/org/elasticsearch/action/support')
-rw-r--r-- | core/src/test/java/org/elasticsearch/action/support/WaitActiveShardCountIT.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/java/org/elasticsearch/action/support/WaitActiveShardCountIT.java b/core/src/test/java/org/elasticsearch/action/support/WaitActiveShardCountIT.java index cab27d74c7..d307c95735 100644 --- a/core/src/test/java/org/elasticsearch/action/support/WaitActiveShardCountIT.java +++ b/core/src/test/java/org/elasticsearch/action/support/WaitActiveShardCountIT.java @@ -53,7 +53,7 @@ public class WaitActiveShardCountIT extends ESIntegTestCase { fail("can't index, does not enough active shard copies"); } catch (UnavailableShardsException e) { assertThat(e.status(), equalTo(RestStatus.SERVICE_UNAVAILABLE)); - assertThat(e.getMessage(), equalTo("[test][0] Not enough active copies to meet shard count of [2] (have 1, needed 2). Timeout: [100ms], request: [BulkShardRequest to [test] containing [1] requests]")); + assertThat(e.getMessage(), equalTo("[test][0] Not enough active copies to meet shard count of [2] (have 1, needed 2). Timeout: [100ms], request: [BulkShardRequest to [[test][0]] containing [1] requests]")); // but really, all is well } @@ -82,7 +82,7 @@ public class WaitActiveShardCountIT extends ESIntegTestCase { fail("can't index, not enough active shard copies"); } catch (UnavailableShardsException e) { assertThat(e.status(), equalTo(RestStatus.SERVICE_UNAVAILABLE)); - assertThat(e.getMessage(), equalTo("[test][0] Not enough active copies to meet shard count of [" + ActiveShardCount.ALL + "] (have 2, needed 3). Timeout: [100ms], request: [BulkShardRequest to [test] containing [1] requests]")); + assertThat(e.getMessage(), equalTo("[test][0] Not enough active copies to meet shard count of [" + ActiveShardCount.ALL + "] (have 2, needed 3). Timeout: [100ms], request: [BulkShardRequest to [[test][0]] containing [1] requests]")); // but really, all is well } |