Skip to content

Commit

Permalink
fixup! add CancellationToken support
Browse files Browse the repository at this point in the history
  • Loading branch information
adamralph committed Feb 18, 2021
1 parent 067418b commit 319cefa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NServiceBus.TransportTests/NServiceBusTransportTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ protected async Task StartPump(Func<MessageContext, Task> onMessage, Func<ErrorC
InputQueueName,
string.Empty,
new StartupDiagnosticEntries(),
(message, ex) =>
(message, ex, cancellationToken) =>
{
if (onCriticalError == null)
{
testCancellationTokenSource.Cancel();
Assert.Fail($"{message}{Environment.NewLine}{ex}");
}
onCriticalError(message, ex);
onCriticalError(message, ex, cancellationToken);
},
true);

Expand Down

0 comments on commit 319cefa

Please sign in to comment.