Skip to content

Commit 2a19572

Browse files
Even more stable
1 parent 6bb0245 commit 2a19572

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CommunityToolkit.Maui.UnitTests/Layouts/StateContainerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ public async Task StateContainer_DefaultAnimation_Timeout()
216216
}
217217

218218
var cancelledTokenSource = new CancellationTokenSource(TimeSpan.FromMicroseconds(1));
219+
await Task.Delay(10, TestContext.Current.CancellationToken);
219220
await Assert.ThrowsAsync<OperationCanceledException>(() => StateContainer.ChangeStateWithAnimation(layout, StateKey.Error, cancelledTokenSource.Token));
220221
}
221222

0 commit comments

Comments
 (0)