diff --git a/sdk/maps/Azure.Maps.Search/tests/FuzzySearchTests.cs b/sdk/maps/Azure.Maps.Search/tests/FuzzySearchTests.cs index 0e48310efdd9c..e57ae3f538cd0 100644 --- a/sdk/maps/Azure.Maps.Search/tests/FuzzySearchTests.cs +++ b/sdk/maps/Azure.Maps.Search/tests/FuzzySearchTests.cs @@ -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); diff --git a/sdk/maps/Azure.Maps.Search/tests/SearchAddressTests.cs b/sdk/maps/Azure.Maps.Search/tests/SearchAddressTests.cs index 18c8793608674..6f5f86b18d666 100644 --- a/sdk/maps/Azure.Maps.Search/tests/SearchAddressTests.cs +++ b/sdk/maps/Azure.Maps.Search/tests/SearchAddressTests.cs @@ -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);