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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.console" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</PropertyGroup>

<ItemGroup Condition="$(IsTestProject)">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.console" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
Expand Down
16 changes: 9 additions & 7 deletions src/ReactiveUI.Tests/Commands/ReactiveCommandTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,11 +1158,13 @@ public async Task ReactiveCommandCreateFromTaskHandlesTaskExceptionAsync()
var subj = new Subject<Unit>();
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);

Expand All @@ -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);
Expand Down