Skip to content

Commit 758a509

Browse files
committed
revert field=>stored_fields rename on update request
1 parent f44c371 commit 758a509

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Tests/Document/Single/Update/UpdateWithSourceApiTests.cs

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

4848
protected override Func<UpdateDescriptor<Project,Project>, IUpdateRequest<Project, Project>> Fluent => d=>d
4949
.Doc(Project.Instance)
50-
.StoredFields(Field<Project>(p=>p.Name).And("_source"))
50+
.Fields(Field<Project>(p=>p.Name).And("_source"))
5151
.DocAsUpsert();
5252

5353
protected override UpdateRequest<Project, Project> Initializer => new UpdateRequest<Project, Project>(CallIsolatedValue)
5454
{
5555
Doc = Project.Instance,
5656
DocAsUpsert = true,
57-
StoredFields = Field<Project>(p=>p.Name).And("_source")
57+
Fields = Field<Project>(p=>p.Name).And("_source")
5858
};
5959

6060
[I] public Task ReturnsSourceAndFields() => this.AssertOnAllResponses(r =>

src/Tests/Framework/Xunit/TestAssemblyRunner.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ orderby g.Count() descending
6666
var clusterTotals = new Dictionary<string, Stopwatch>();
6767
foreach (var group in grouped)
6868
{
69+
if (group.Key?.GetType() != typeof(WritableCluster)) continue;
6970
var type = group.Key?.GetType();
7071
var clusterName = type?.Name.Replace("Cluster", "") ?? "UNKNOWN";
71-
var dop = group.Key != null && group.Key.MaxConcurrency > 0
72-
? group.Key.MaxConcurrency
73-
: defaultMaxConcurrency;
72+
var dop = group.Key != null && group.Key.MaxConcurrency > 0
73+
? group.Key.MaxConcurrency
74+
: defaultMaxConcurrency;
7475

7576
//if (type != typeof(ReadOnlyCluster)) continue;
7677

0 commit comments

Comments
 (0)