Skip to content

Commit

Permalink
Fix for Maps.Search: Remove test delay call once service race conditi…
Browse files Browse the repository at this point in the history
…on is fixed (#42957)
  • Loading branch information
jecmenicanikola committed Mar 27, 2024
1 parent 4a4709c commit 7ab485d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions sdk/maps/Azure.Maps.Search/tests/FuzzySearchTests.cs
Expand Up @@ -90,8 +90,6 @@ public async Task CanPollFuzzySearchBatch()
new FuzzySearchQuery("pizza", new FuzzySearchOptions { Coordinates = new GeoPosition(121.56, 25.04) }),
});

// delay 400 ms for the task to complete
await Task.Delay(400);
var fuzzySearchBatchResp = operation.WaitForCompletion();

Assert.AreEqual("CAFE_PUB", fuzzySearchBatchResp.Value.Results[0].Results[0].PointOfInterest.Classifications[0].Code);
Expand Down
2 changes: 0 additions & 2 deletions sdk/maps/Azure.Maps.Search/tests/SearchAddressTests.cs
Expand Up @@ -157,8 +157,6 @@ public async Task CanPollSearchAddressBatch()
new SearchAddressQuery("Millenium", new SearchAddressOptions { CountryFilter = new[] { "US" }}),
});

// delay 400 ms for the task to complete
await Task.Delay(400);
var searchResult = operation.WaitForCompletion();
Assert.AreEqual(2, searchResult.Value.Results.Count);
Assert.AreEqual("Tucson", searchResult.Value.Results[1].Results[0].Address.Municipality);
Expand Down

0 comments on commit 7ab485d

Please sign in to comment.