Skip to content

Commit

Permalink
fix text
Browse files Browse the repository at this point in the history
  • Loading branch information
gukoff committed Jul 25, 2024
1 parent 10c6e0e commit 58cf877
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions test/Common/DurableTaskEndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5577,16 +5577,26 @@ public async Task ExtendedSessions_OutOfProc_SetToFalse()
{ "FUNCTIONS_WORKER_RUNTIME", "node" },
});

using (var host = TestHelpers.GetJobHostWithOptions(
this.loggerProvider,
durableTaskOptions,
nameResolver: nameResolver))
{
await host.StartAsync();
await host.StopAsync();
}

Assert.False(durableTaskOptions.ExtendedSessionsEnabled);
InvalidOperationException exception =
await Assert.ThrowsAsync<InvalidOperationException>(async () =>
{
using (var host = TestHelpers.GetJobHostWithOptions(
this.loggerProvider,
durableTaskOptions,
nameResolver: nameResolver))
{
await host.StartAsync();
await host.StopAsync();
}
});

Assert.NotNull(exception);
Assert.StartsWith(
"Durable Functions with extendedSessionsEnabled set to 'true' is only supported when using",
exception.Message,
StringComparison.OrdinalIgnoreCase
)
}

[Fact]
Expand Down

0 comments on commit 58cf877

Please sign in to comment.