From 9b5ab86f761a3efa31195c4af2c9bc1b600c3e7b Mon Sep 17 00:00:00 2001 From: Phill Morton Date: Thu, 28 Sep 2023 12:28:25 +0100 Subject: [PATCH] add code comments for test. --- test/E2ETest/TyeRunTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/E2ETest/TyeRunTests.cs b/test/E2ETest/TyeRunTests.cs index 927c1330..6ac1ec6f 100644 --- a/test/E2ETest/TyeRunTests.cs +++ b/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); });