Skip to content

Commit

Permalink
initial commit (#2963)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian authored Nov 14, 2024
1 parent 3d738e4 commit 4382283
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/WebJobs.Extensions.DurableTask/EndToEndTraceHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.Azure.WebJobs.Extensions.DurableTask
{
internal class EndToEndTraceHelper
{
private static readonly string ExtensionVersion = FileVersionInfo.GetVersionInfo(typeof(DurableTaskExtension).Assembly.Location).FileVersion;
private static readonly string ExtensionVersion = FileVersionInfo.GetVersionInfo(typeof(DurableTaskExtension).Assembly.Location).FileVersion!;

private static string? appName;
private static string? slotName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private async Task InvokeUserCodeAndHandleResults(
{
this.TraceAndSendExceptionNotification(ex);
this.context.OrchestrationException = ExceptionDispatchInfo.Capture(ex);
throw ex;
throw;
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion test/Common/DurableTaskEndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
using Microsoft.Azure.WebJobs.Host.TestCommon;
using Microsoft.Diagnostics.Tracing;
using Microsoft.Extensions.Hosting;
using WebJobs.Extensions.DurableTask.Tests.V2;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using WebJobs.Extensions.DurableTask.Tests.V2;
using Xunit;
using Xunit.Abstractions;
using Xunit.Sdk;
Expand Down
2 changes: 0 additions & 2 deletions test/Common/StorageServiceClientProviderFactoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public void GetTableClientProvider_ConnectionString(string connectionString, str
Assert.Equal(new Uri(expectedEndpoint, UriKind.Absolute), actual.Uri);
}


[Theory]
[Trait("Category", PlatformSpecificHelpers.TestCategory)]
[InlineData("unittest1", "https://unittest1.blob.core.windows.net")]
Expand Down Expand Up @@ -242,7 +241,6 @@ private static Dictionary<string, string> Serialize<T>(T value)
settings);
}


private StorageServiceClientProviderFactory SetupClientProviderFactory(string connectionName, string connectionString)
{
var mock = new Mock<IConnectionInfoResolver>(MockBehavior.Strict);
Expand Down
3 changes: 2 additions & 1 deletion test/FunctionsV2/DurableTaskScaleMonitorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public DurableTaskScaleMonitorTests(ITestOutputHelper output)
this.loggerFactory.AddProvider(this.loggerProvider);
ILogger logger = this.loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("DurableTask"));
this.traceHelper = new EndToEndTraceHelper(logger, false);
this.performanceMonitor = new Mock<DisconnectedPerformanceMonitor>(MockBehavior.Strict, new AzureStorageOrchestrationServiceSettings{
this.performanceMonitor = new Mock<DisconnectedPerformanceMonitor>(MockBehavior.Strict, new AzureStorageOrchestrationServiceSettings
{
StorageAccountClientProvider = this.clientProvider,
TaskHubName = this.hubName,
});
Expand Down

0 comments on commit 4382283

Please sign in to comment.