Skip to content

Commit cc053d8

Browse files
committed
Fix test break
1 parent 1ef4e2c commit cc053d8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

test/WebJobs.Script.Tests.Integration/Host/StandbyManager/StandbyManagerE2ETestBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ namespace Microsoft.Azure.WebJobs.Script.Tests
3030
public class StandbyManagerE2ETestBase : IDisposable
3131
{
3232
private const string TestSiteName = "test-site-name";
33-
protected static readonly object OriginalTimeZoneInfoCache = GetCachedTimeZoneInfo();
3433

3534
public StandbyManagerE2ETestBase()
3635
{
@@ -54,6 +53,8 @@ public StandbyManagerE2ETestBase()
5453

5554
protected TestMetricsLogger MetricsLogger { get; set; }
5655

56+
protected object OriginalTimeZoneInfoCache { get; } = GetCachedTimeZoneInfo();
57+
5758
protected virtual void ConfigureScriptHostConfiguration(IConfigurationBuilder builder)
5859
{
5960
}

test/WebJobs.Script.Tests.Integration/Host/WebJobsScriptHostServiceTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,20 @@ await TestHelpers.Await(() =>
156156
public void InitializationLogs_AreEmitted()
157157
{
158158
// verify startup trace logs
159-
string[] expectedPatternsWebHost = new string[]
160-
{
159+
string[] expectedPatternsWebHost =
160+
[
161161
"Information Reading host configuration file",
162162
"Information Host configuration file read",
163-
};
163+
];
164164

165-
string[] expectedPatternsScriptHost = new string[]
166-
{
165+
string[] expectedPatternsScriptHost =
166+
[
167167
@"Information Generating 2 job function\(s\)",
168168
"Host initialization: ConsecutiveErrors=0, StartupCount=1",
169169
@"Information Starting Host \(HostId=(.*), InstanceId=(.*), Version=(.+), ProcessId=[0-9]+, AppDomainId=[0-9]+, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=\(null\)\)",
170170
"Information Found the following functions:",
171171
"Information Job host started",
172-
};
172+
];
173173

174174
IList<LogMessage> logs = _testHost.GetWebHostLogMessages();
175175
foreach (string pattern in expectedPatternsWebHost)

0 commit comments

Comments
 (0)