Skip to content
Closed
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 @@ -25,8 +25,6 @@ public ConfigureEndpointSqsTransport(bool supportsPublishSubscribe = true)

public Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings, PublisherMetadata publisherMetadata)
{
PreventInconclusiveTestsFromRunning(endpointName);

var transport = PrepareSqsTransport(supportsPublishSubscribe);
configuration.UseTransport(transport);

Expand Down Expand Up @@ -68,6 +66,7 @@ public static SqsTransport PrepareSqsTransport(bool supportsPublishSubscribe = t

static void ApplyMappingsToSupportMultipleInheritance(string endpointName, SqsTransport transportConfig)
{
// TODO: This can probably be simplified now with the publisher mapping
if (endpointName == Conventions.EndpointNamingConvention(typeof(MultiSubscribeToPolymorphicEvent.Subscriber)))
{
transportConfig.MapEvent<MultiSubscribeToPolymorphicEvent.IMyEvent, MultiSubscribeToPolymorphicEvent.MyEvent1>();
Expand Down Expand Up @@ -99,13 +98,5 @@ static void ApplyMappingsToSupportMultipleInheritance(string endpointName, SqsTr
public Task Cleanup() =>
// Queues are cleaned up once, globally, in SetupFixture.
Task.CompletedTask;

static void PreventInconclusiveTestsFromRunning(string endpointName)
{
if (endpointName == Conventions.EndpointNamingConvention(typeof(MessageDriven.Pub_from_sendonly.SendOnlyPublisher)))
{
Assert.Inconclusive("Test is not using endpoint naming conventions in hardcoded subscription storage. Should be fixed in core vNext.");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="NServiceBus.AcceptanceTests.Sources" Version="9.2.3" GeneratePathProperty="true" />
<PackageReference Include="NServiceBus.AcceptanceTests.Sources" Version="9.2.4-alpha.1" GeneratePathProperty="true" />
<PackageReference Include="NUnit" Version="4.3.2" />
<PackageReference Include="NUnit.Analyzers" Version="4.6.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
Expand Down