Browse Source

Fix unit tests

pull/9669/head
liangshiwei 5 years ago
parent
commit
1c99daddf2
  1. 3
      framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Local/EventBus_Exception_Handler_Tests.cs

3
framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Local/EventBus_Exception_Handler_Tests.cs

@ -33,9 +33,7 @@ namespace Volo.Abp.EventBus.Local
LocalEventBus.Subscribe<MyExceptionHandleEventData>(eventData =>
{
eventData.Value.ShouldBe(0);
retryAttempt++;
eventData.Value++;
if (retryAttempt < 2)
{
throw new Exception("This exception is intentionally thrown!");
@ -58,7 +56,6 @@ namespace Volo.Abp.EventBus.Local
eventData.Value.ShouldBe(0);
retryAttempt++;
eventData.Value++;
throw new Exception("This exception is intentionally thrown!");
});

Loading…
Cancel
Save