Skip to content

Commit cdea256

Browse files
committed
Fix Attachment integration test
Appears that detect language is required in the 5.0.0-alpha1 compatible version of the plugin in order to be able to query on explicit language
1 parent 922cb3b commit cdea256

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Tests/Document/Single/Attachment/AttachmentApiTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ public class AttachmentExplicitWithMetadataApiTests : AttachmentApiTestsBase
199199
ContentType = "application/pdf",
200200
Content = Content,
201201
Name = "content name",
202-
Language = "en"
202+
Language = "en",
203+
DetectLanguage = true
203204
}
204205
};
205206

@@ -215,7 +216,8 @@ public AttachmentExplicitWithMetadataApiTests(IndexingCluster cluster, EndpointU
215216
_content = Content,
216217
_content_type = "application/pdf",
217218
_name = "content name",
218-
_language = "en"
219+
_language = "en",
220+
_detect_language = true
219221
}
220222
};
221223

0 commit comments

Comments
 (0)