Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Maps.Search: Remove test delay call once service race conditi… #42957

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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