U:调整所有代码格式
This commit is contained in:
1 parent
d133bacf55
commit
155b67e831
342 files changed
+9431
-9868
No files matched your search
@@ -142,10 +142,7 @@ public class ServerIntegrationTests
|
||||
var tasks = new List<Task<HttpResponseMessage>>();
|
||||
|
||||
// Act - 发送 10 个并发请求
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
tasks.Add(client.GetAsync($"api/integration/concurrent?id={i}"));
|
||||
}
|
||||
for (var i = 0; i < 10; i++) tasks.Add(client.GetAsync($"api/integration/concurrent?id={i}"));
|
||||
|
||||
var responses = await Task.WhenAll(tasks);
|
||||
|
||||
@@ -201,4 +198,4 @@ internal class IntegrationTestController : BaseController
|
||||
await Task.Delay(50); // 模拟一些处理时间
|
||||
await WriteSuccessResponseAsync(context, new { id, processed = true });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user