From d3ab33a82d26841d9abe331de752dea3a666828e Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 15 May 2026 17:40:44 +0800 Subject: [PATCH] Drop brittle exception type assertion in RemoteServiceExceptionHandler test Asserting GetType() == typeof(Exception) locks the test to the base type. The remaining message assertions already cover the intent of ensuring the underlying JSON parse error does not surface. --- .../Cli/ProjectBuilding/RemoteServiceExceptionHandler_Tests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/framework/test/Volo.Abp.Cli.Core.Tests/Volo/Abp/Cli/ProjectBuilding/RemoteServiceExceptionHandler_Tests.cs b/framework/test/Volo.Abp.Cli.Core.Tests/Volo/Abp/Cli/ProjectBuilding/RemoteServiceExceptionHandler_Tests.cs index a5730019de..7f41db9e3a 100644 --- a/framework/test/Volo.Abp.Cli.Core.Tests/Volo/Abp/Cli/ProjectBuilding/RemoteServiceExceptionHandler_Tests.cs +++ b/framework/test/Volo.Abp.Cli.Core.Tests/Volo/Abp/Cli/ProjectBuilding/RemoteServiceExceptionHandler_Tests.cs @@ -49,7 +49,6 @@ public class RemoteServiceExceptionHandler_Tests var exception = await Should.ThrowAsync(() => _handler.EnsureSuccessfulHttpResponseAsync(response)); - exception.GetType().ShouldBe(typeof(Exception)); exception.Message.ShouldContain("403-Forbidden"); exception.Message.ShouldNotContain("invalid start of a value"); }