Skip to content

Commit 3223378

Browse files
authored
bumping timer package (#10916)
1 parent 6d4f732 commit 3223378

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
- Allow sync trigger to happen in managed environment when `AzureWebJobsStorage` is not set (#10767)
1010
- Fixing default DateTime bug with TimeZones in TimerTrigger (#10906)
1111
- Adjusting the logic to determine the warmup call in placeholder simulation mode to align with the production flow (#10918)
12+
- Fixing invalid DateTimes in status blobs when invoking via portal (#10916)

src/WebJobs.Script/WebJobs.Script.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
@@ -41,7 +41,7 @@
4141
<PackageReference Include="Microsoft.Azure.WebJobs.Host.Storage" Version="5.0.1" />
4242
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.7.1" />
4343
<PackageReference Include="Microsoft.Azure.AppService.Proxy.Client" Version="2.3.20240307.67" />
44-
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.2.0-12282" />
44+
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.2.0-12287" />
4545
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.2.0" />
4646
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Timers.Storage" Version="1.0.0-beta.1" />
4747
<PackageReference Include="Microsoft.Azure.WebJobs.Script.Abstractions" Version="1.0.4-preview" />

test/WebJobs.Script.Tests.Integration/Management/InstanceManagerTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
using Microsoft.Azure.WebJobs.Script.WebHost.Management.LinuxSpecialization;
1717
using Microsoft.Azure.WebJobs.Script.WebHost.Models;
1818
using Microsoft.Azure.WebJobs.Script.Workers.Rpc;
19-
using Microsoft.Extensions.Configuration;
2019
using Microsoft.Extensions.Logging;
2120
using Microsoft.Extensions.Logging.Abstractions;
2221
using Microsoft.WebJobs.Script.Tests;
@@ -967,16 +966,19 @@ public async Task Does_Not_Mount_Invalid_BYOS_Accounts()
967966

968967
var meshInitServiceClient = new Mock<IMeshServiceClient>(MockBehavior.Strict);
969968

969+
bool called = false;
970970
meshInitServiceClient.Setup(client =>
971-
client.MountCifs(Utility.BuildStorageConnectionString(account1, accessKey1, CloudConstants.AzureStorageSuffix), share1, targetPath1)).Returns(Task.FromResult(true));
971+
client.MountCifs(Utility.BuildStorageConnectionString(account1, accessKey1, CloudConstants.AzureStorageSuffix), share1, targetPath1))
972+
.Returns(Task.FromResult(true))
973+
.Callback(() => called = true);
972974

973975
var instanceManager = new AtlasInstanceManager(_optionsFactory, _httpClientFactory, _scriptWebEnvironment, _environment,
974976
_loggerFactory.CreateLogger<AtlasInstanceManager>(), new TestMetricsLogger(), meshInitServiceClient.Object,
975977
_runFromPackageHandler, _packageDownloadHandler.Object);
976978

977979
instanceManager.StartAssignment(hostAssignmentContext);
978980

979-
await Task.Delay(TimeSpan.FromSeconds(0.5));
981+
await TestHelpers.Await(() => called);
980982

981983
meshInitServiceClient.Verify(
982984
client => client.MountCifs(Utility.BuildStorageConnectionString(account1, accessKey1, CloudConstants.AzureStorageSuffix), share1,

0 commit comments

Comments
 (0)