Skip to content

Commit 1b8b710

Browse files
ShivangiRejaShivangiReja
andauthored
[Search] Fix nightly test failures (#46374)
Co-authored-by: ShivangiReja <[email protected]>
1 parent c191d10 commit 1b8b710

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/search/Azure.Search.Documents/tests/SearchIndexClientTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ static string GetDuplicates(IEnumerable<string> values)
109109
}
110110

111111
[Test]
112+
[ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2024_09_01_Preview)]
112113
public async Task GetServiceStatistics()
113114
{
114115
await using SearchResources resources = await SearchResources.GetSharedHotelsIndexAsync(this);
@@ -145,6 +146,7 @@ public void CreateIndexParameterValidation()
145146
}
146147

147148
[Test]
149+
[ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2024_09_01_Preview)]
148150
public async Task CreateIndex()
149151
{
150152
await using SearchResources resources = SearchResources.CreateWithNoIndexes(this);
@@ -179,6 +181,7 @@ public void UpdateIndexParameterValidation()
179181
}
180182

181183
[Test]
184+
[ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2024_09_01_Preview)]
182185
public async Task UpdateIndex()
183186
{
184187
await using SearchResources resources = SearchResources.CreateWithNoIndexes(this);

0 commit comments

Comments
 (0)