Skip to content

Commit 1dcd056

Browse files
committed
Fix FieldsTest: should not search all types
The Content field is being checked for, but only the elasticsearchprojects type contains this field. This was causing an ArgumentNullException.
1 parent 47c7289 commit 1dcd056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tests/Nest.Tests.Integration/Search/FieldTests/FieldsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void Search_WithFieldsRemoved_ReturnsDocuments_ResultingArrayOfDocsShould
2828
s.Skip(0)
2929
.Take(10)
3030
.Fields(fields.ConvertAll(x => x.ToCamelCase()).ToArray())
31-
.AllTypes());
31+
);
3232

3333
Assert.True(queryResults.IsValid);
3434

0 commit comments

Comments
 (0)