Skip to content

Commit a4f458a

Browse files
committed
Merge branch 'upd' into dev
2 parents a5f71b2 + c2ce540 commit a4f458a

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</ItemGroup>
4646

4747
<ItemGroup>
48-
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.2" />
48+
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.4" />
4949
<PackageReference Include="Microsoft.AspNetCore.Buffering" Version="0.4.0-preview2-28189" />
5050
<PackageReference Include="Microsoft.Azure.AppService.Proxy.Client" Version="2.0.5350001-beta-fc119b98" />
5151
<PackageReference Include="Microsoft.AspNetCore.Server.IIS" Version="2.1.0-a-oob-2-1-oob-17035" />

src/WebJobs.Script/WebJobs.Script.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<PackageReference Include="Google.Protobuf" Version="3.5.1" />
2626
<PackageReference Include="Grpc.Core" Version="1.12.0" />
2727
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.7.2" />
28-
<PackageReference Include="Microsoft.AspNetCore.Mvc.WebApiCompatShim" Version="2.1.1">
28+
<PackageReference Include="Microsoft.AspNetCore.Mvc.WebApiCompatShim" Version="2.1.2">
2929
<NoWarn>NU1701</NoWarn>
3030
</PackageReference>
3131
<PackageReference Include="Microsoft.Azure.AppService.Proxy.Client" Version="2.0.5350001-beta-fc119b98" />

test/WebJobs.Script.Tests.Shared/TestHelpers.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ public static partial class TestHelpers
2828
private const string Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
2929
private static readonly Random Random = new Random();
3030

31-
public static async Task RunWithTimeoutAsync(Func<Task> action, TimeSpan timeout)
32-
{
33-
Task timeoutTask = Task.Delay(timeout);
34-
Task actionTask = action();
35-
Task completedTask = await Task.WhenAny(actionTask, timeoutTask);
36-
37-
if (completedTask == timeoutTask)
38-
{
39-
throw new Exception($"Task did not complete within timeout interval {timeout}.");
40-
}
41-
}
42-
4331
/// <summary>
4432
/// Gets the common root directory that functions tests create temporary directories under.
4533
/// This enables us to clean up test files by deleting this single directory.
@@ -52,6 +40,18 @@ public static string FunctionsTestDirectory
5240
}
5341
}
5442

43+
public static async Task RunWithTimeoutAsync(Func<Task> action, TimeSpan timeout)
44+
{
45+
Task timeoutTask = Task.Delay(timeout);
46+
Task actionTask = action();
47+
Task completedTask = await Task.WhenAny(actionTask, timeoutTask);
48+
49+
if (completedTask == timeoutTask)
50+
{
51+
throw new Exception($"Task did not complete within timeout interval {timeout}.");
52+
}
53+
}
54+
5555
public static byte[] GenerateKeyBytes()
5656
{
5757
using (var aes = new AesManaged())

0 commit comments

Comments
 (0)