Skip to content

Commit 3322c7c

Browse files
committed
fix failing unit tests after fixing deprecations
1 parent 8a4204b commit 3322c7c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Tests/ClientConcepts/HighLevel/Mapping/ParentChildJoins.doc.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public void SimpleParentChildMapping()
7272
.Name(p=>p.MyJoinField)
7373
.Relations(r => r
7474
.Join<MyDocument, MyChild>()
75-
.Join<MyDocument>(typeof(MyChild), typeof(MyChild))
7675
)
7776
)
7877
)

src/Tests/Document/Multiple/Bulk/BulkInvalidVersionApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override LazyResponses ClientUsage() => Calls(
3333
{
3434
new Dictionary<string, object>{ { "index", new { _type="doc", _id = Project.Instance.Name } } },
3535
Project.InstanceAnonymous,
36-
new Dictionary<string, object>{ { "index", new { _type="doc", _id = Project.Instance.Name, _version = 0 } } },
36+
new Dictionary<string, object>{ { "index", new { _type="doc", _id = Project.Instance.Name, version = 0 } } },
3737
Project.InstanceAnonymous,
3838
};
3939

src/Tests/Document/Multiple/MultiGet/MultiGetApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected override LazyResponses ClientUsage() => Calls(
8383

8484
protected override object ExpectJson { get; } = new
8585
{
86-
docs = Developer.Developers.Select(p => new { _type = "developer", _id = p.Id, _routing = p.Id.ToString(), _source = false }).Take(10)
86+
docs = Developer.Developers.Select(p => new { _type = "developer", _id = p.Id, routing = p.Id.ToString(), _source = false }).Take(10)
8787
};
8888

8989
protected override Func<MultiGetDescriptor, IMultiGetRequest> Fluent => d => d
@@ -185,7 +185,7 @@ protected override LazyResponses ClientUsage() => Calls(
185185

186186
protected override object ExpectJson => new
187187
{
188-
docs = _activities.Select(p => new { _id = p.Id, _routing = p.ProjectName })
188+
docs = _activities.Select(p => new { _id = p.Id, routing = p.ProjectName })
189189
};
190190

191191
protected override Func<MultiGetDescriptor, IMultiGetRequest> Fluent => d => d

0 commit comments

Comments
 (0)