Skip to content

Commit 84a30dc

Browse files
committed
Fix Attachment integration test
Appears that detect language is required in order to be able to query on explicit language
1 parent 9105620 commit 84a30dc

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
@@ -201,7 +201,8 @@ public class AttachmentExplicitWithMetadataApiTests : AttachmentApiTestsBase
201201
ContentType = "application/pdf",
202202
Content = Content,
203203
Name = "content name",
204-
Language = "en"
204+
Language = "en",
205+
DetectLanguage = true
205206
}
206207
};
207208

@@ -217,7 +218,8 @@ public AttachmentExplicitWithMetadataApiTests(IndexingCluster cluster, EndpointU
217218
_content = Content,
218219
_content_type = "application/pdf",
219220
_name = "content name",
220-
_language = "en"
221+
_language = "en",
222+
_detect_language = true
221223
}
222224
};
223225

0 commit comments

Comments
 (0)