Browse Source

add code comments for test.

pull/1612/head
Phill Morton 3 years ago
parent
commit
9b5ab86f76
  1. 5
      test/E2ETest/TyeRunTests.cs

5
test/E2ETest/TyeRunTests.cs

@ -146,15 +146,16 @@ services:
await RunHostingApplication(application, new HostOptions(), async (app, uri) =>
{
//The backend calls the Function app via Dapr InvokeMethod. So test that that func has a sidecar, and being proxied.
var backendUri = await GetServiceUrl(client, uri, "dapr-test-project");
//Wait for the services to start
await Task.Delay(10000);
var backendResponse = await client.GetAsync(backendUri);
Assert.True(backendResponse.IsSuccessStatusCode);
//The backend calls the Function app via Dapr InvokeMethod. So test that that func has a sidecar, and being proxied.
var responseContent = await backendResponse.Content.ReadAsStringAsync();
Assert.Contains("Welcome to Azure Functions!", responseContent);
});

Loading…
Cancel
Save