Skip to content

Commit

Permalink
Fix maps search testing error (#37483)
Browse files Browse the repository at this point in the history
* Fix maps search testing error

* Fix test assertion error
  • Loading branch information
dubiety committed Jul 11, 2023
1 parent 56bdbc3 commit 3a762cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/maps/Azure.Maps.Search/tests/SearchAddressTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public async Task CanSearchAddressBatch()
new SearchAddressQuery("Millenium", new SearchAddressOptions { CountryFilter = new[] { "US" }}),
});

Assert.AreEqual("Redmond", searchResult.Value.Results[0].Results[0].Address.Municipality);
Assert.AreEqual(2, searchResult.Value.Results.Count);
Assert.AreEqual("Tucson", searchResult.Value.Results[1].Results[0].Address.Municipality);
}

Expand All @@ -160,7 +160,7 @@ public async Task CanPollSearchAddressBatch()
// delay 400 ms for the task to complete
await Task.Delay(400);
var searchResult = operation.WaitForCompletion();
Assert.AreEqual("Redmond", searchResult.Value.Results[0].Results[0].Address.Municipality);
Assert.AreEqual(2, searchResult.Value.Results.Count);
Assert.AreEqual("Tucson", searchResult.Value.Results[1].Results[0].Address.Municipality);
}
}
Expand Down

0 comments on commit 3a762cc

Please sign in to comment.