Skip to content

Commit 7f468d9

Browse files
committed
Fixing test
1 parent 9494795 commit 7f468d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/WebJobs.Script.Tests.Integration/ApplicationInsights/ApplicationInsightsEndToEndTestsBase.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ await TestHelpers.Await(() =>
232232
.OrderBy(t => t.Message)
233233
.ToArray();
234234

235-
return traces.Length >= 10;
235+
return traces.Length >= 11;
236236
});
237237

238-
Assert.True(traces.Length == 10, $"Expected 10 messages, but found {traces.Length}. Actual logs:{Environment.NewLine}{string.Join(Environment.NewLine, traces.Select(t => t.Message))}");
238+
Assert.True(traces.Length == 11, $"Expected 10 messages, but found {traces.Length}. Actual logs:{Environment.NewLine}{string.Join(Environment.NewLine, traces.Select(t => t.Message))}");
239239

240240
ValidateTrace(traces[0], "Found the following functions:\r\n", LogCategories.Startup);
241241
ValidateTrace(traces[1], "Generating 2 job function(s)", LogCategories.Startup);
@@ -246,7 +246,8 @@ await TestHelpers.Await(() =>
246246
ValidateTrace(traces[6], "Loaded custom extension 'EventGridExtensionConfig'", LogCategories.Startup);
247247
ValidateTrace(traces[7], "Loaded custom extension 'SendGridConfiguration'", LogCategories.Startup);
248248
ValidateTrace(traces[8], "Reading host configuration file", LogCategories.Startup);
249-
ValidateTrace(traces[9], "Starting Host (HostId=function-tests-", ScriptConstants.LogCategoryHostGeneral);
249+
ValidateTrace(traces[9], "ServicePointManager.DefaultConnectionLimit is set to the default value of 2. This can limit the connection throughput to services like Azure Storage. For more information, see https://aka.ms/webjobs-connections.", LogCategories.Startup, expectedLevel: SeverityLevel.Warning);
250+
ValidateTrace(traces[10], "Starting Host (HostId=function-tests-", ScriptConstants.LogCategoryHostGeneral);
250251

251252
await Task.CompletedTask;
252253
}

0 commit comments

Comments
 (0)