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
  • Loading branch information
jecmenicanikola committed Mar 25, 2024
1 parent 1fdbf4a commit 0f43d43
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 0f43d43

Please sign in to comment.