From 28b3634fe7bf94e9f4078fa52084815861a420d1 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 2 Jul 2024 10:16:30 +0800 Subject: [PATCH 1/2] Fix unit test. --- .../Mvc/ExceptionHandling/ExceptionTestController_Tests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs index 1b79441de8..40fb77c432 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs @@ -108,7 +108,7 @@ public class ExceptionTestController_Tests : AspNetCoreMvcTestBase var result = await GetResponseAsObjectAsync("/api/exception-test/ExceptionOnUowSaveChange", HttpStatusCode.Conflict); result.Error.ShouldNotBeNull(); - result.Error.Message.ShouldBe("The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning."); + result.Error.Message.ShouldBe("The data you have submitted has already been changed by another user. Discard your changes and try again."); #pragma warning disable 4014 _fakeExceptionSubscriber From a9d469a42f060e1f8b9ae31dfd906eaa6d2ee391 Mon Sep 17 00:00:00 2001 From: maliming <6908465+maliming@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:46:06 +0800 Subject: [PATCH 2/2] Update ExceptionTestPage_Tests.cs --- .../AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs index 48ccf6499f..c5bce679a0 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs @@ -156,7 +156,7 @@ public class ExceptionTestPage_Tests : AspNetCoreMvcTestBase var result = await GetResponseAsObjectAsync("/api/exception-test/ExceptionOnUowSaveChange", HttpStatusCode.Conflict); result.Error.ShouldNotBeNull(); - result.Error.Message.ShouldBe("The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning."); + result.Error.Message.ShouldBe("The data you have submitted has already been changed by another user. Discard your changes and try again."); #pragma warning disable 4014 _fakeExceptionSubscriber