Skip to content

Commit c2ca88f

Browse files
committed
fix failing unit tests after fixing integration tests against 6.0.0-alpha1
1 parent a8a4d0f commit c2ca88f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Tests/Document/Multiple/DeleteByQuery/DeleteByQueryApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public DeleteByQueryWaitForCompletionApiTests(IntrusiveOperationCluster cluster,
106106

107107
protected override DeleteByQueryDescriptor<Project> NewDescriptor() => new DeleteByQueryDescriptor<Project>(this.CallIsolatedValue);
108108

109-
protected override object ExpectJson => new { };
109+
protected override object ExpectJson => new { query = new { match_all = new { } } };
110110

111111
protected override Func<DeleteByQueryDescriptor<Project>, IDeleteByQueryRequest> Fluent => d => d
112112
.Index(this.CallIsolatedValue)

src/Tests/Document/Multiple/UpdateByQuery/UpdateByQueryApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected override LazyResponses ClientUsage() => Calls(
6868

6969
protected override bool SupportsDeserialization => false;
7070

71-
protected override object ExpectJson { get; } = new { };
71+
protected override object ExpectJson { get; } = new { query = new { match_all = new { } } };
7272

7373
protected override UpdateByQueryDescriptor<Test> NewDescriptor() => new UpdateByQueryDescriptor<Test>(CallIsolatedValue).Type<Test>();
7474

src/Tests/Indices/IndexSettings/IndexTemplates/PutIndexTemplate/PutIndexTemplateApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected override LazyResponses ClientUsage() => Calls(
3232
protected override object ExpectJson { get; } = new
3333
{
3434
order = 1,
35-
template = "nestx-*",
35+
index_patterns = new [] {"nestx-*" },
3636
settings = new Dictionary<string, object> { { "index.number_of_shards", 1 } },
3737
mappings = new
3838
{

0 commit comments

Comments
 (0)