Skip to content

Commit bc064d5

Browse files
committed
multi search now response 404 properly
1 parent 9f48d8c commit bc064d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Tests/Search/MultiSearch/MultiSearchInvalidApiTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ [I] public Task AssertResponse() => AssertOnAllResponses(r =>
7777
private void AssertInvalidResponse(IResponse searchResponse)
7878
{
7979
searchResponse.ShouldNotBeValid();
80+
8081
searchResponse.ServerError.Should().NotBeNull();
81-
searchResponse.ServerError.Status.Should().Be(-1);
82+
searchResponse.ServerError.Status.Should().Be(404);
8283
searchResponse.ServerError.Error.Should().NotBeNull();
8384
searchResponse.ServerError.Error.Type.Should().Be("index_not_found_exception");
8485
searchResponse.ServerError.Error.Reason.Should().Be("no such index");

0 commit comments

Comments
 (0)