From 1ae5d912ac4bd45d072404ca4078bbf1063cc3d1 Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 23 Jan 2025 17:34:49 +0800 Subject: [PATCH] Fix unit test `Order`. --- .../Abp/EventBus/Distributed/LocalDistributedEventBus_Test.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus_Test.cs b/framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus_Test.cs index 33362dc90b..88c515f8dc 100644 --- a/framework/test/Volo.Abp.EventBus.Tests/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus_Test.cs +++ b/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)); } }