Skip to content

Commit a005f43

Browse files
committed
Fix Open/Close index test for ES 1.2.2
1 parent 757485b commit a005f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/Nest.Tests.Integration/Indices/OpenCloseTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public void CloseAndSearchAndOpenIndex()
4545

4646
var error = results.ServerError;
4747
error.Should().NotBeNull();
48-
error.ExceptionType.Should().Be("ClusterBlockException");
49-
error.Error.Should().Contain("index closed");
48+
error.ExceptionType.Should().BeOneOf("ClusterBlockException", "IndexClosedException");
49+
error.Error.Should().Contain("closed");
5050

5151
r = this._client.OpenIndex(ElasticsearchConfiguration.DefaultIndex);
5252
Assert.True(r.Acknowledged);

0 commit comments

Comments
 (0)