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); });