From 269385c3d7cc4ad609b12056d272e3f7c4e49b6b Mon Sep 17 00:00:00 2001 From: ZjzMisaka Date: Mon, 3 Aug 2026 10:41:07 +0800 Subject: [PATCH] test: Make test use async/await for task coordination --- UnitTest/PowerPoolTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnitTest/PowerPoolTest.cs b/UnitTest/PowerPoolTest.cs index 62fadc8..80ade11 100644 --- a/UnitTest/PowerPoolTest.cs +++ b/UnitTest/PowerPoolTest.cs @@ -10198,7 +10198,7 @@ public void TestRecordRealWorkIDWhenFailed() } [Fact] - public void TestLoopInStepsDictionaryGetNextNull() + public async void TestLoopInStepsDictionaryGetNextNull() { _output.WriteLine($"Testing {GetType().Name}.{MethodBase.GetCurrentMethod().ReflectedType.Name}"); @@ -10215,7 +10215,7 @@ public void TestLoopInStepsDictionaryGetNextNull() })); } - Task.WaitAll(tasks.ToArray()); + await Task.WhenAll(tasks.ToArray()); } } }