mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
fix(game-tests): 修复取消读取测试的异步警告
- 修复取消读取回归测试的外层 async Task 签名,消除没有 await 的编译警告 - 优化异步异常断言,继续验证取消流程会保留 OperationCanceledException 语义
This commit is contained in:
parent
686647c06b
commit
953a03b937
@ -2791,7 +2791,7 @@ public class YamlConfigLoaderTests
|
||||
/// 避免热重载把会话级取消误报为配置读取失败。
|
||||
/// </summary>
|
||||
[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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user