Skip to content

Commit 6cc3e50

Browse files
committed
Fix test name and assertion.
1 parent 4d24081 commit 6cc3e50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Tests/Reproduce/GithubIssue2985.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class GithubIssue2985 : IClusterFixture<WritableCluster>
1616
protected static string RandomString() => Guid.NewGuid().ToString("N").Substring(0, 8);
1717

1818
[I]
19-
public void CanReadSingleOrMultipleCommonGramsCommonWordsItem()
19+
public void BadRequestErrorShouldBeWrappedInElasticsearchClientException()
2020
{
2121
var client = _cluster.Client;
2222
var index = $"gh2985-{RandomString()}";
@@ -31,8 +31,7 @@ public void CanReadSingleOrMultipleCommonGramsCommonWordsItem()
3131
);
3232
response.OriginalException.Should().NotBeNull().And.BeOfType<ElasticsearchClientException>();
3333
response.OriginalException.Message.Should()
34-
.StartWith("Request failed to execute")
35-
.And.EndWith(
34+
.Contain(
3635
"Type: illegal_argument_exception Reason: \"Custom Analyzer [custom] failed to find filter under name [ascii_folding]\""
3736
);
3837

0 commit comments

Comments
 (0)