Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 44s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 3s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
18 lines
367 B
C#
18 lines
367 B
C#
namespace WebApi.Test.Basic;
|
|
|
|
public class BaseTest
|
|
{
|
|
public BaseTest()
|
|
{
|
|
// 初始化雪花算法ID生成器
|
|
var options = new IdGeneratorOptions(1);
|
|
try
|
|
{
|
|
YitIdHelper.SetIdGenerator(options);
|
|
}
|
|
catch (Exception)
|
|
{
|
|
// 忽略重复设置可能引发的异常
|
|
}
|
|
}
|
|
} |