Browse Source

Fix unit test `Order`.

pull/21985/head
maliming 2 years ago
parent
commit
1ae5d912ac
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 4
      framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus_Test.cs

4
framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus_Test.cs

@ -80,7 +80,7 @@ public class LocalDistributedEventBus_Test : LocalDistributedEventBusTestBase
MyEventDate.Order = string.Empty;
await DistributedEventBus.PublishAsync(new MyEventDate(), onUnitOfWorkComplete: false);
MyEventDate.Order.ShouldBe(nameof(MyEventHandle) + nameof(DistributedEventSent) + nameof(DistributedEventReceived));
MyEventDate.Order.ShouldBe(nameof(DistributedEventSent) + nameof(DistributedEventReceived) + nameof(MyEventHandle));
MyEventDate.Order = string.Empty;
await DistributedEventBus.PublishAsync(new MyEventDate(), onUnitOfWorkComplete: true);
@ -88,7 +88,7 @@ public class LocalDistributedEventBus_Test : LocalDistributedEventBusTestBase
await uow.CompleteAsync();
MyEventDate.Order.ShouldBe(nameof(MyEventHandle) + nameof(DistributedEventSent) + nameof(DistributedEventReceived));
MyEventDate.Order.ShouldBe(nameof(DistributedEventSent) + nameof(DistributedEventReceived) + nameof(MyEventHandle));
}
}

Loading…
Cancel
Save