Skip to content

Commit

Permalink
chore(deps): update Rebus from v6.6.5 to v7.0.0 in package. Update to…
Browse files Browse the repository at this point in the history
… v8.0.2 only in test project. Keep one test target framework running against v7.0.0 to validate compatibility. (#22)
  • Loading branch information
skwasjer committed Nov 25, 2023
1 parent 4cc4ec4 commit c23e854
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Rebus.Correlate/Rebus.Correlate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="Correlate" Version="4.0.0" />
<PackageReference Include="Rebus" Version="6.6.5" />
<PackageReference Include="Rebus" Version="7.0.0" />
</ItemGroup>

</Project>
13 changes: 12 additions & 1 deletion test/Rebus.Correlate.Tests/Fixtures/RebusFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ protected RebusFixture()
{
_configureActions.Add(configurer => configurer
.Transport(t => t.UseInMemoryTransport(new InMemNetwork(), "input"))
.Subscriptions(s => s.StoreInMemory(new InMemorySubscriberStore()))
.Subscriptions(s =>
{
try
{
s.StoreInMemory(new InMemorySubscriberStore());
}
catch (InvalidOperationException ex) when (ex.Message.Contains("a primary registration already exists"))
{
// Newer Rebus impl. of UseInMemoryTransport() registers a subscription storage provider by default
// in which case we just ignore the exception.
}
})
// Route all to input.
.Routing(r => r.TypeBased().MapFallback("input"))
);
Expand Down
13 changes: 11 additions & 2 deletions test/Rebus.Correlate.Tests/Rebus.Correlate.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@
<RootNamespace>Rebus.Correlate</RootNamespace>
</PropertyGroup>

<PropertyGroup>
<PackageRebusVersion>8.0.2</PackageRebusVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='net5.0'">
<!-- Testing older dependencies with older SDK. -->
<PackageRebusVersion>7.0.0</PackageRebusVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Correlate.DependencyInjection" Version="4.0.0" />
<PackageReference Include="Rebus" Version="6.6.5" />
<PackageReference Include="Rebus" Version="$(PackageRebusVersion)" />
</ItemGroup>

<ItemGroup>
Expand All @@ -22,4 +31,4 @@
<ProjectReference Include="..\..\src\Rebus.Correlate\Rebus.Correlate.csproj" AdditionalProperties="TargetFramework=netstandard2.0" Condition="'$(TargetFramework)'=='net5.0'" />
</ItemGroup>

</Project>
</Project>

0 comments on commit c23e854

Please sign in to comment.