Skip to content

Commit

Permalink
Update async test
Browse files Browse the repository at this point in the history
  • Loading branch information
bquantump committed Mar 1, 2021
1 parent 3b55384 commit 1c98db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/Proto.Client/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void Main(string[] args)
Scenario scenario = null;
try
{
scenario = ScenarioFactory.GetScenario(Scenarios.GetByContainers);
scenario = ScenarioFactory.GetScenario(Scenarios.GetByContainersAsync);
scenario.Execute();
}
finally
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ private async Task ExecuteAsync()
Debug.Assert(virtualNetwork.Value.Data.Name.Equals(response.Data.Id.Name));
await foreach (var subnetResponse in response.GetSubnetContainer().ListAsync())
{
var actualSubnet = await subnetResponse.GetAsync();
var subnets = await response.GetSubnetContainer().GetAsync(actualSubnet.Value.Data.Name);
Debug.Assert(subnets.Value.Data.Name.Equals(actualSubnet.Value.Data.Name));
var subnets = await response.GetSubnetContainer().GetAsync(subnetResponse.Data.Name);
Debug.Assert(subnets.Value.Data.Name.Equals(subnetResponse.Data.Name));
}
}
Console.WriteLine("\nDone all asserts passed ...");
Expand Down

0 comments on commit 1c98db2

Please sign in to comment.