diff --git a/integrationtests/IntegrationTests.Shared.Tests/IntegrationTests.Shared.Tests.csproj b/integrationtests/IntegrationTests.Shared.Tests/IntegrationTests.Shared.Tests.csproj index c5bbc3ffc2..d4b027411d 100644 --- a/integrationtests/IntegrationTests.Shared.Tests/IntegrationTests.Shared.Tests.csproj +++ b/integrationtests/IntegrationTests.Shared.Tests/IntegrationTests.Shared.Tests.csproj @@ -8,7 +8,7 @@ - + all diff --git a/src/Directory.build.props b/src/Directory.build.props index 575df2094a..d408300b01 100644 --- a/src/Directory.build.props +++ b/src/Directory.build.props @@ -34,7 +34,7 @@ - + diff --git a/src/ReactiveUI.Tests/Commands/ReactiveCommandTest.cs b/src/ReactiveUI.Tests/Commands/ReactiveCommandTest.cs index 2e0bce97ad..9ee43f1316 100644 --- a/src/ReactiveUI.Tests/Commands/ReactiveCommandTest.cs +++ b/src/ReactiveUI.Tests/Commands/ReactiveCommandTest.cs @@ -1158,11 +1158,13 @@ public async Task ReactiveCommandCreateFromTaskHandlesTaskExceptionAsync() var subj = new Subject(); var isExecuting = false; Exception? fail = null; - var fixture = ReactiveCommand.CreateFromTask(async _ => - { - await subj.Take(1); - throw new Exception("break execution"); - }); + var fixture = ReactiveCommand.CreateFromTask( + async _ => + { + await subj.Take(1); + throw new Exception("break execution"); + }); + fixture.IsExecuting.Subscribe(x => isExecuting = x); fixture.ThrownExceptions.Subscribe(ex => fail = ex); @@ -1175,8 +1177,8 @@ public async Task ReactiveCommandCreateFromTaskHandlesTaskExceptionAsync() subj.OnNext(Unit.Default); - // Wait 1 ms to allow execution to complete - await Task.Delay(1).ConfigureAwait(false); + // Wait 10 ms to allow execution to complete + await Task.Delay(10).ConfigureAwait(false); Assert.False(isExecuting); Assert.Equal("break execution", fail?.Message);