Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Testing/CoreTests/Acceptance/remote_invocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ public async Task InitializeAsync()
{
opts.ServiceName = "Receiver1";
opts.ListenAtPort(_receiver1Port);

opts.EnableAutomaticFailureAcks = true;
}).StartAsync();

_receiver2 = await Host.CreateDefaultBuilder()
.UseWolverine(opts =>
{
opts.ServiceName = "Receiver2";
opts.ListenAtPort(_receiver2Port);

opts.EnableAutomaticFailureAcks = true;
}).StartAsync();

_sender = await Host.CreateDefaultBuilder()
Expand All @@ -57,6 +61,8 @@ public async Task InitializeAsync()

opts.PublishMessage<Request4>().ToPort(_receiver1Port);
opts.PublishMessage<Request4>().ToPort(_receiver2Port);

opts.EnableAutomaticFailureAcks = true;
}).StartAsync();
}

Expand Down
2 changes: 2 additions & 0 deletions src/Testing/CoreTests/Runtime/MoveToErrorQueueTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public MoveToErrorQueueTester()
[Fact]
public async Task should_send_a_failure_ack_if_not_local()
{
theRuntime.Options.EnableAutomaticFailureAcks = true;

theEnvelope.Destination = new Uri("tcp://localhost:9000");

await theContinuation.ExecuteAsync(theLifecycle, theRuntime, DateTimeOffset.Now, null);
Expand Down
4 changes: 2 additions & 2 deletions src/Testing/CoreTests/WolverineOptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public void publish_agent_events_should_be_false_by_default()
}

[Fact]
public void failure_acks_are_enabled_by_default()
public void failure_acks_are_NOT_enabled_by_default()
{
new WolverineOptions().EnableAutomaticFailureAcks.ShouldBeTrue();
new WolverineOptions().EnableAutomaticFailureAcks.ShouldBeFalse();
}

[Fact]
Expand Down
4 changes: 2 additions & 2 deletions src/Wolverine/WolverineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ public AutoCreate AutoBuildMessageStorageOnStartup

/// <summary>
/// Should message failures automatically try to send a failure acknowledgement message back to the
/// original caller. Default is true.
/// original caller. Default is *false* as of Wolverine 4.6
/// </summary>
public bool EnableAutomaticFailureAcks { get; set; } = true;
public bool EnableAutomaticFailureAcks { get; set; } = false;

private void deriveServiceName()
{
Expand Down
Loading