From 953a03b937f23d48bac8b112d000563111f0b188 Mon Sep 17 00:00:00 2001 From: gewuyou <95328647+GeWuYou@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(game-tests):=20=E4=BF=AE=E5=A4=8D=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E8=AF=BB=E5=8F=96=E6=B5=8B=E8=AF=95=E7=9A=84=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复取消读取回归测试的外层 async Task 签名,消除没有 await 的编译警告 - 优化异步异常断言,继续验证取消流程会保留 OperationCanceledException 语义 --- GFramework.Game.Tests/Config/YamlConfigLoaderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Game.Tests/Config/YamlConfigLoaderTests.cs b/GFramework.Game.Tests/Config/YamlConfigLoaderTests.cs index 94b662cd..4d3a0baf 100644 --- a/GFramework.Game.Tests/Config/YamlConfigLoaderTests.cs +++ b/GFramework.Game.Tests/Config/YamlConfigLoaderTests.cs @@ -2791,7 +2791,7 @@ public class YamlConfigLoaderTests /// 避免热重载把会话级取消误报为配置读取失败。 /// [Test] - public async Task ReadYamlAsync_Should_Preserve_OperationCanceledException_When_Cancellation_Is_Requested() + public void ReadYamlAsync_Should_Preserve_OperationCanceledException_When_Cancellation_Is_Requested() { CreateConfigFile( "monster/slime.yaml",