Skip to content

Commit 73a5c87

Browse files
committed
Fix broken test
1 parent 41d8dda commit 73a5c87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Components/Components/src/Rendering/Renderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private async Task ProcessAsynchronousWork(ComponentState componentState)
175175
{
176176
await pendingWork;
177177
}
178-
catch when (!pendingWork.IsCanceled || HandleException(componentState.ComponentId, componentState.Component, pendingWork.Exception))
178+
catch when (pendingWork.IsCanceled || HandleException(componentState.ComponentId, componentState.Component, pendingWork.Exception))
179179
{
180180
// await will unwrap an AggregateException and return exactly one inner exception.
181181
// We'll do our best to handle all inner exception instances.

src/Components/Components/test/RendererTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ await renderer.RenderRootComponentAsync(componentId, ParameterCollection.FromDic
14941494
},
14951495
[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
14961496
{
1497-
[0] = CreateRenderFactory(new[] { 1, 2 }),
1497+
[0] = CreateRenderFactory(new[] { 1, 2, }),
14981498
[1] = CreateRenderFactory(Array.Empty<int>()),
14991499
[2] = CreateRenderFactory(Array.Empty<int>()),
15001500
},

0 commit comments

Comments
 (0)