Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.
Open
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
8 changes: 6 additions & 2 deletions src/Cake.Parallel.Tests/ParallelCakeEngineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,12 @@ public async Task Should_Swallow_Exceptions_If_ContinueOnError_Is_Set()
var engine = fixture.CreateEngine();
engine.RegisterTask("A").ContinueOnError().Does(() => { throw new InvalidOperationException(); });

// When, Then
await engine.RunTargetAsync(fixture.Context, fixture.ExecutionStrategy, "A");
// When
var record = await Record.ExceptionAsync(async () =>
await engine.RunTargetAsync(fixture.Context, fixture.ExecutionStrategy, "A"));

// Then
Assert.Null(record);
}

[Fact]
Expand Down