Skip to content

Commit 43952ab

Browse files
committed
chore: Fix code smell
1 parent 5d46482 commit 43952ab

File tree

2 files changed

+4
-2
lines changed
  • src/Contrib
    • Data/IdGenerator/Snowflake/Tests/Masa.Contrib.Data.IdGenerator.Snowflake.Distributed.Redis.Tests
    • Service/Tests/Masa.Contrib.Service.MinimalAPIs.Tests/Services

2 files changed

+4
-2
lines changed

src/Contrib/Data/IdGenerator/Snowflake/Tests/Masa.Contrib.Data.IdGenerator.Snowflake.Distributed.Redis.Tests/IdGeneratorTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public async Task TestGetDistibutedLockFaieldAsync()
242242
int laterTime = 0;
243243
try
244244
{
245-
Parallel.For(0, maxWorkerId * 2, _ =>
245+
Parallel.For(0, maxWorkerId * 10, _ =>
246246
{
247247
tasks.Add(GetWorkerIdAsync(null, workerIdBits));
248248
});

src/Contrib/Service/Tests/Masa.Contrib.Service.MinimalAPIs.Tests/Services/OrderService.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Masa.Contrib.Service.MinimalAPIs.Tests.Services;
55

6+
#pragma warning disable CA1822
67
public class OrderService : ServiceBase
78
{
89
public string ConnectionString => GetConnectionString;
@@ -34,7 +35,7 @@ public static void SetName()
3435

3536
public override string ToString()
3637
{
37-
return base.ToString();
38+
return nameof(OrderService);
3839
}
3940

4041
[IgnoreRoute]
@@ -43,3 +44,4 @@ public List<MethodInfo> TestGetMethodsByAutoMapRoute(ServiceGlobalRouteOptions g
4344
return base.GetMethodsByAutoMapRoute(typeof(OrderService), globalOptions);
4445
}
4546
}
47+
#pragma warning restore CA1822

0 commit comments

Comments
 (0)